maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   Tear 0.3 - Simple WebKit browser, now with Dashboard (https://talk.maemo.org/showthread.php?t=26475)

daperl 2009-03-01 20:55

Re: Tear 0.3 - Simple WebKit browser, now with Dashboard
 
Quote:

Originally Posted by Bundyo (Post 260336)
  • Popup menu changed to use the internal WebKit one. Since it is an ugly hack it doesn't detect links and images under the cursor. Works better for selections and input elements

I haven't looked at your latest code yet, but here's a Python right-button-click solution that you should translate 'cause links and images are detected:
Code:

class BrowserPage(webkit.WebView):
    def __init__(self, ...
        ...
        self.connect("button-press-event", self.on_button_press)
        ...
        try:
            self.connect("tap-and-hold", self.on_tap_and_hold)
            self.tap_and_hold_setup(None, None, 0)
        except:
            self.maemo = False
        ...
    ...
    def on_button_press(self, view, event):
        self._event = event.copy()
        ...
    ...
    def on_tap_and_hold(self, menu, widget=None, data=None):
        self.menudown = True
        self._event.button = 3
        gtk.main_do_event(self._event)


bunanson 2009-03-01 22:27

Re: Tear 0.3 - Simple WebKit browser, now with Dashboard
 
WebKitGTK+ 1.1.1 is out today, http://blogs.gnome.org/xan/2009/03/01/webkitgtk-111/! Are we looking for some new tear very soon? Thanks again to Bundyo and the tear project contributors.

======================================
WebKitGTK+ 1.1.1

March 1, 2009 5:26 pm xan General
...What’s new in WebKitGTK+ 1.1.1?

- ABI compatibility with 1.0.3 was broken, so you will need to
recompile your application against 1.1.1
- Support for the CURL backend was dropped, libsoup is the only HTTP
backend now.
- webkit_get_default_session, to get the SoupSession used internally
by WebKit.
- ‘create-web-view’ signal, emitted when the creation of a new
window is requested.
- ‘navigation-policy-decision-requested’ signal, emitted when a
navigation to another page is requested.
- ‘mime-type-policy-decision-requested’ signal, emitted each time
WebKit is about to show a URI with a given MIME type.
- Support for the Web Inspector
(see http://webkit.org/blog/197/web-inspector-redesign/)
- HTTP authentication support, with optional gnome-keyring storage.
- New load functions: webkit_web_view_open, webkit_web_view_load_uri
and webkit_web_view_load_request. The old
webkit_web_view_load_string and webkit_web_view_load_html_string
are now deprecated.
- webkit_web_view_reload_bypass_cache
- webkit_web_view_{get,set}_custom_encoding, to override the
encoding of the current page.
- Improved stability and lots of bugfixes.
================================================== ==========
bun

Bundyo 2009-03-02 00:11

Re: Tear 0.3 - Simple WebKit browser, now with Dashboard
 
Quote:

Originally Posted by bongo (Post 268116)
I think for you and Bundyo it's time to implement folders :)

Yeah, that's what path is for :)

Bundyo 2009-03-02 00:13

Re: Tear 0.3 - Simple WebKit browser, now with Dashboard
 
Quote:

Originally Posted by daperl (Post 268123)
I haven't looked at your latest code yet, but here's a Python right-button-click solution that you should translate 'cause links and images are detected:
Code:

class BrowserPage(webkit.WebView):
    def __init__(self, ...
        ...
        self.connect("button-press-event", self.on_button_press)
        ...
        try:
            self.connect("tap-and-hold", self.on_tap_and_hold)
            self.tap_and_hold_setup(None, None, 0)
        except:
            self.maemo = False
        ...
    ...
    def on_button_press(self, view, event):
        self._event = event.copy()
        ...
    ...
    def on_tap_and_hold(self, menu, widget=None, data=None):
        self.menudown = True
        self._event.button = 3
        gtk.main_do_event(self._event)


That should do quite nicely i think :) No need for the hack too.

Bundyo 2009-03-02 00:18

Re: Tear 0.3 - Simple WebKit browser, now with Dashboard
 
Quote:

Originally Posted by bunanson (Post 268139)
- Support for the CURL backend was dropped, libsoup is the only HTTP backend now.

That actually is my problem. They did it not even a week ago and Maemo 4 doesn't have support for libsoup 2.4 which is required. Everything else is already taken into account and some things are used. SVN41128 is only some days away from 1.1.1 anyway so it should do until I port libsoup and convert a number of things to use it instead of CURL.

bongo 2009-03-02 07:23

Re: Tear 0.3 - Simple WebKit browser, now with Dashboard
 
Quote:

Originally Posted by Bundyo (Post 268161)
Yeah, that's what path is for :)

He He, I know. ;)

What I thought about is to support a folder element in your database. Something like "bookmark_folder" and not just "bookmark" because it should be possible to create empty folders.

Bundyo 2009-03-02 08:47

Re: Tear 0.3 - Simple WebKit browser, now with Dashboard
 
Oh, okay, didn't thought of that :) bookmark_folder is okay I think.

fms 2009-03-02 10:02

Re: Tear 0.3 - Simple WebKit browser, now with Dashboard
 
Hello, Bundyo!

I have found an interesting problem with Tear. It looks like under certain circumstances, the SPACE key on the virtual keyboard stops working. So far, I have not found the exact preconditions for that, but here is how it happened:

1. Opened virtual keyboard while trying to write a response in the forum at n8xx.com.
2. Typed something using Roman letters (EN), SPACE works so far.
3. Switched to Cyrillics (RU) and tried typing, SPACE no longer works.
4. Switched back to EN, but SPACE still does not work.

Is this something you encountered before? Any way to fix it?

Bundyo 2009-03-02 12:59

Re: Tear 0.3 - Simple WebKit browser, now with Dashboard
 
I think I encountered it once but wasn't able to reproduce it later. The only way to fix it was to restart Tear. Cyrillic wasn't involved though.

qole 2009-03-02 18:50

Re: Tear 0.3 - Simple WebKit browser, now with Dashboard
 
Quote:

Originally Posted by fms (Post 268228)
It looks like under certain circumstances, the SPACE key on the virtual keyboard stops working.

I have also had this problem.

Quote:

Originally Posted by qole (Post 266575)
I was having issues with N800 OSK too. Spacebar was non-functional.

My locale is en_GB and I have standard qwerty (virtual) keyboard.

Interestingly, I had the same problem when trying to get Hildon Input Method working in my Debian chroot. The new Mer implementation of H-I-M works much better.

Old Debian H-I-M screenshot:

http://farm4.static.flickr.com/3115/...865db92390.jpg


All times are GMT. The time now is 20:34.

vBulletin® Version 3.8.8