Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 10-19-2013, 12:01 PM   #121
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
hmm.. not a raging success. I see one label :P

back to gtk2 - will investigate gtk3 "later"
Attached Thumbnails
Click image for larger version

Name:	screenshot_2013_10_19T16_01_02+0000.png
Views:	366
Size:	59.4 KB
ID:	113671  
twobob is offline   Reply With Quote
Old 10-19-2013, 12:05 PM   #122
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by twobob View Post
sed -i 's/O:R/O:U/g' ./midori/midori-view.c
sed -i 's/O:R/O:U/g' ./midori/main.c
sed -i 's/O:R/O:U/g' ./midori/midori-browser.c

let's try an upright build...
Well, seems like progress to me.

All of these have been only small skirmishes in the over-all war.

It seems you haven't yet met your:

knc1 is offline   Reply With Quote
Advert
Old 10-19-2013, 01:14 PM   #123
Aeris
Developer's Corner Mascot
Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.
 
Aeris's Avatar
 
Posts: 486
Karma: 1277790
Join Date: Sep 2013
Device: Kindle Paperwhite 5.3.4, Kindle Keyboard 3.4
Quote:
Originally Posted by twobob View Post
hmm.. not a raging success. I see one label :P

back to gtk2 - will investigate gtk3 "later"
Don't hurry... is only a feature request above all, not a bug PS remember panic-screensaver for 0.4 so we can test without hesitations!
Aeris is offline   Reply With Quote
Old 10-19-2013, 01:45 PM   #124
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
yah. I dug up the cause of the speed-dial death (thanks again <pfor>) basically in the /mnt/us/extensions/midori/usr/share/midori/res/speeddial-head.html it calls a javascript dialog box

which are by their very nature NON-TITLE aware...
sigh.

Think the speeddial will have to go for now, dug around for the last hour and found a few solutions. probably reworking to a modal-dialog would be a cheap solution.

for another day.

Hacking the defaults now to remove the speed-dial.

Last edited by twobob; 10-19-2013 at 04:13 PM.
twobob is offline   Reply With Quote
Old 10-19-2013, 01:49 PM   #125
Aeris
Developer's Corner Mascot
Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.
 
Aeris's Avatar
 
Posts: 486
Karma: 1277790
Join Date: Sep 2013
Device: Kindle Paperwhite 5.3.4, Kindle Keyboard 3.4
Great work for today Twobob Thank you!
Aeris is offline   Reply With Quote
Advert
Old 10-19-2013, 04:14 PM   #126
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
about:dial has been elided from /most/ places that I could find it now.

Will look to bundle after a clean rebuild.

Expect 0.4 RSN
twobob is offline   Reply With Quote
Old 10-19-2013, 06:41 PM   #127
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
Can I find where it invokes the file chooser with the name "Upload File"?
I can not.

it's not in the source code
http://svn.webkit.org/repository/web...serrequest.cpp

I have added a title adjustment after every file_chooser I could find.
still didnt fix it.

0x140015d "Upload File": ("midori_kindle" "Midori") 1740x1305+-491+-140 +-491+-140 MapState=IsViewable

scratches head
twobob is offline   Reply With Quote
Old 10-19-2013, 07:39 PM   #128
baf
Evangelist
baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.
 
Posts: 404
Karma: 2200000
Join Date: May 2012
Device: kt
Quote:
Originally Posted by twobob View Post
it calls a javascript dialog box

which are by their very nature NON-TITLE aware...
See how I solved it in SkipStone. You can connect to "script-alert" signal which is emitted by webkit when javascript calls window.alert. Same applies to prompt and confirm boxes.
baf is offline   Reply With Quote
Old 10-19-2013, 07:43 PM   #129
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
Quote:
Originally Posted by baf View Post
See how I solved it in SkipStone. You can connect to "script-alert" signal which is emitted by webkit when javascript calls window.alert. Same applies to prompt and confirm boxes.
You really are very awesome.
I thank you for that.

Will check that out...

One thing I learned.
Debian DO post their build logs...
https://buildd.debian.org/status/fet...amp=1382044207 who knew?
twobob is offline   Reply With Quote
Old 10-19-2013, 07:58 PM   #130
baf
Evangelist
baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.
 
Posts: 404
Karma: 2200000
Join Date: May 2012
Device: kt
Quote:
Originally Posted by twobob View Post
Can I find where it invokes the file chooser with the name "Upload File"?
I can not.

it's not in the source code
http://svn.webkit.org/repository/web...serrequest.cpp

I have added a title adjustment after every file_chooser I could find.
still didnt fix it.

0x140015d "Upload File": ("midori_kindle" "Midori") 1740x1305+-491+-140 +-491+-140 MapState=IsViewable

scratches head
Are you using latest svn webkit? Similar gtk_file_chooser_dialog_new is in older versions, for example here.
baf is offline   Reply With Quote
Old 10-19-2013, 08:07 PM   #131
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
Thanks baf. I have a very lot to learn.

Going to try rebuilding that from source I think then. Get us a few more HTML5 nice to haves (and try for the fast-mobile-scrolling thingy)

may be a complete disaster :P

Quote:
CFLAGS="-march=armv7-a -mtune=cortex-a8 -mfpu=neon -ftree-vectorize -static-libstdc++ -O2 -pipe -fstack-protector -Wall -Wl,--as-needed -gstabs -ffast-math" CXXFLAGS="${CFLAGS}" CPPFLAGS="-D_FORTIFY_SOURCE=2" LDFLAGS="-Wl,-rpath,/mnt/us/extensions/midori/usr/lib -static-libstdc++ -Wl,-O1 -Wl,--no-keep-memory" ./configure --prefix=/mnt/us/extensions/midori/usr --disable-jit --disable-silent-rules --disable-schemas-compile --with-gtk=2.0 --disable-gtk-doc --enable-introspection --enable-fast-mobile-scrolling --enable-web-audio --enable-mhtml --disable-geolocation --enable-video-track --enable-image-resizer --with-target=x11 --disable-glibtest

Last edited by twobob; 10-25-2013 at 11:45 AM.
twobob is offline   Reply With Quote
Old 10-19-2013, 09:10 PM   #132
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
Quote:
Originally Posted by baf View Post
See how I solved it in SkipStone. You can connect to "script-alert" signal which is emitted by webkit when javascript calls window.alert. Same applies to prompt and confirm boxes.
Code:
gboolean handle_script_alert(WebKitWebView *web_view, WebKitWebFrame *frame, gchar *message, SkipStone *skipstone)
{

   g_signal_connect(G_OBJECT(skipstone->embed), "script-alert", G_CALLBACK(handle_script_alert), skipstone);
   g_signal_connect(G_OBJECT(skipstone->embed), "script-confirm", G_CALLBACK(handle_script_confirm), skipstone);
   g_signal_connect(G_OBJECT(skipstone->embed), "script-prompt", G_CALLBACK(handle_script_prompt), skipstone);


  GtkWidget *dialog;
  D_ENTER;
  dialog = gtk_message_dialog_new(GTK_WINDOW(skipstone->window),
            GTK_DIALOG_DESTROY_WITH_PARENT,
            GTK_MESSAGE_INFO,
            GTK_BUTTONS_OK,
            message);
  gtk_window_set_title(GTK_WINDOW(dialog), KTITLE);
  gtk_window_set_position(GTK_WINDOW(dialog), GTK_WIN_POS_CENTER);
  gtk_dialog_run(GTK_DIALOG(dialog));
  gtk_widget_destroy(dialog);
  D_RETURN_(TRUE);
}

+gboolean handle_script_confirm(WebKitWebView *web_view, WebKitWebFrame *frame, gchar *message, gboolean **confirmed, SkipStone *skipstone)
{
  GtkWidget *dialog;
  D_ENTER;
  *confirmed = FALSE;
  dialog = gtk_message_dialog_new(GTK_WINDOW(skipstone->window),
            GTK_DIALOG_DESTROY_WITH_PARENT,
            GTK_MESSAGE_QUESTION,
            GTK_BUTTONS_OK_CANCEL,
            message);
  gtk_window_set_title(GTK_WINDOW(dialog), KTITLE);
  gtk_window_set_position(GTK_WINDOW(dialog), GTK_WIN_POS_CENTER);
  gint result = gtk_dialog_run(GTK_DIALOG(dialog));
  if(result == GTK_RESPONSE_OK)
    *confirmed = TRUE;
  gtk_widget_destroy(dialog);
  D_RETURN_(TRUE);
}

gboolean handle_script_prompt(WebKitWebView *web_view, WebKitWebFrame *frame, gchar *message, gchar *default_text, gchar **text, SkipStone *skipstone)
{
  GtkWidget *dialog;
  GtkWidget *entry, *message_area;
  D_ENTER;
  dialog = gtk_message_dialog_new(GTK_WINDOW(skipstone->window),
            GTK_DIALOG_DESTROY_WITH_PARENT,
            GTK_MESSAGE_QUESTION,
            GTK_BUTTONS_OK,
            message);
  gtk_window_set_title(GTK_WINDOW(dialog), KTITLE);
  gtk_window_set_position(GTK_WINDOW(dialog), GTK_WIN_POS_CENTER);
  message_area = gtk_dialog_get_content_area(GTK_DIALOG(dialog));
  entry = gtk_entry_new();
  gtk_entry_set_text(GTK_ENTRY(entry), default_text);
  gtk_widget_show(entry);
  gtk_container_add (GTK_CONTAINER (message_area), entry);
  gtk_dialog_run(GTK_DIALOG(dialog));
  *text = g_strdup(gtk_entry_get_text(GTK_ENTRY(entry)));
  gtk_widget_destroy(dialog);
  D_RETURN_(TRUE);
}
brilliant.

Last edited by twobob; 10-19-2013 at 09:14 PM.
twobob is offline   Reply With Quote
Old 10-19-2013, 09:27 PM   #133
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
having difficulty with the libwebkitgtk build sadly.

perhaps we should

https://people.gnome.org/~federico/d...extensioniface

it's that, or figure out EXACTLY in midori where it is invoking the "unreferenced" call to the filechooser. Happy to take advice on how best to achieve that...

Last edited by twobob; 10-19-2013 at 11:13 PM. Reason: fixed link to be more obvious. thanks brian
twobob is offline   Reply With Quote
Old 10-19-2013, 10:06 PM   #134
brianinmaine
Evangelist
brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.
 
brianinmaine's Avatar
 
Posts: 456
Karma: 1287375
Join Date: Jan 2013
Location: West Gardiner, Maine
Device: Touch (5.3.7)
why not lock down to /mnt/us ? thats all we need is that possible? or set HOME first to there then set lock to home?
brianinmaine is offline   Reply With Quote
Old 10-20-2013, 03:41 AM   #135
baf
Evangelist
baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.
 
Posts: 404
Karma: 2200000
Join Date: May 2012
Device: kt
Quote:
Originally Posted by twobob View Post
it's that, or figure out EXACTLY in midori where it is invoking the "unreferenced" call to the filechooser. Happy to take advice on how best to achieve that...
It is invoked automatically when user clicks input button. You will not find reference to it in midori.
What you can do is to handle "run-file-chooser" signal in a custom function. See here.

BTW, I should also implement it in SkipStone

Regarding webkit build I only built Amazon version. Didn't try a modern one.

Last edited by baf; 10-20-2013 at 03:55 AM. Reason: typo
baf is offline   Reply With Quote
Reply

Tags
browser, extensions, kindle, kual, launcher add-ons, midori

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
release candidate 0.2-rc6 lunohod OpenInkpot 0 12-04-2009 05:24 PM
release candidate 0.2-rc5 dottedmag OpenInkpot 50 12-04-2009 04:44 AM
release candidate 0.2-rc4 dottedmag OpenInkpot 10 11-12-2009 12:35 PM
release candidate 0.2-rc3 dottedmag OpenInkpot 10 11-05-2009 02:18 AM
release candidate 0.2-rc1 dottedmag OpenInkpot 36 10-18-2009 12:07 AM


All times are GMT -4. The time now is 11:47 PM.


MobileRead.com is a privately owned, operated and funded community.