sds910
|
2009-07-14
, 03:53
|
Posts: 45 |
Thanked: 11 times |
Joined on Aug 2008
|
#581
|
|
2009-07-14
, 05:17
|
|
Posts: 4,708 |
Thanked: 4,649 times |
Joined on Oct 2007
@ Bulgaria
|
#582
|
|
2009-07-14
, 06:00
|
|
Posts: 2,142 |
Thanked: 2,054 times |
Joined on Dec 2006
@ Sicily
|
#583
|
|
2009-07-14
, 07:36
|
|
Posts: 4,274 |
Thanked: 5,358 times |
Joined on Sep 2007
@ Looking at y'all and sighing
|
#584
|
|
2009-07-14
, 14:07
|
|
Posts: 4,708 |
Thanked: 4,649 times |
Joined on Oct 2007
@ Bulgaria
|
#585
|
|
2009-07-14
, 14:19
|
|
Posts: 36 |
Thanked: 74 times |
Joined on Jun 2009
@ Seattle, WA, USA
|
#586
|
|
2009-07-14
, 14:24
|
|
Posts: 4,708 |
Thanked: 4,649 times |
Joined on Oct 2007
@ Bulgaria
|
#587
|
using GLib; using Gtk; using DBus; using Osso; BrowserProxyServer server; [DBus (name = "com.nokia.osso_browser")] public class BrowserProxyServer : GLib.Object { [DBus (visible = false)] public void OpenAddress(string uri) { uri.printf(); Process.spawn_async( null, ("/usr/bin/dbus-send --session --type=method_call --print-reply --dest=com.nokia.tear "+ "/com/nokia/tear com.nokia.Tear.OpenAddress string:"+uri).split(" "), null, 0, null, null ); } public int load_url(string uri) { warning( "load_url" ); this.OpenAddress( uri ); return 1; } public int open_new_window(string uri) { warning( "open_new_window" ); return this.load_url( uri ); } } public class BrowserProxy : GLib.Object { construct { var connection = DBus.Bus.get( BusType.SESSION ); dynamic DBus.Object bus = connection.get_object ("org.freedesktop.DBus", "/org/freedesktop/DBus", "org.freedesktop.DBus"); uint request_name_result = bus.request_name ("com.nokia.osso_browser", (uint) 0); if (request_name_result == DBus.RequestNameReply.PRIMARY_OWNER) connection.register_object ("/com/nokia/osso_browser", server); } static int main (string[] args) { Osso.Context ctx; Gtk.init (ref args); ctx = new Osso.Context("BrowserProxy", "0.1", false, null); if (ctx.display_state_on() != Osso.Status.OK) warning("Osso Initialization failed."); server = new BrowserProxyServer(); var pbrowser = new BrowserProxy(); Gtk.main(); return 0; } }
|
2009-07-14
, 14:43
|
Posts: 4,556 |
Thanked: 1,624 times |
Joined on Dec 2007
|
#588
|
|
2009-07-14
, 14:56
|
|
Posts: 4,274 |
Thanked: 5,358 times |
Joined on Sep 2007
@ Looking at y'all and sighing
|
#589
|
|
2009-07-14
, 15:07
|
|
Posts: 4,708 |
Thanked: 4,649 times |
Joined on Oct 2007
@ Bulgaria
|
#590
|
Tags |
browserd fix, microb killer, webkit |
Thread Tools | |
|