[java-gnome-hackers] GApplication and GtkApplication coverage
Brought to you by:
afcowie
From: Guillaume M. <res...@gm...> - 2011-12-05 23:08:27
|
Hi, I'm currently working on the coverage of GApplication and GtkApplication to fix one of the bug[1] in our Bugzilla. You can find my work on a branch at 'hackers/guillaume/gtk-application/'. Sadly, I'm hiting some problems: * Dbus error, * Command line handler, * Opened files handler. Basically, it works (for now) only if we use the "NONE" ApplicationFlags and if no arguments are passed when starting the application. Moreover, everybody knows that in our lovely crafted bindings, we should always call Gtk.init() first except for some rare cases (you know that right?). But GtkApplication is supposed (and is calling it [the C function]) automatically. Is it cool? I don't know, but it is a problem for us because we cannot allow that. We must explictly call Gtk.init() ourselves. If anyone wants to give me a hand (by making some code, giving me more details about how G[tk]Application works, etc..) I will thank you :) And to finish this email, here is a quote from the IRC channels for people who don't stay always on IRC or who are not using it (you should!). 07:24 < AfC> Respawner: do you want me to hold off releasing 4.1.2? 07:24 < AfC> If you can figure it out it would give us a good feature to include 07:26 < Respawner> AfC: hum I don't know it might take some time to me to figure out the issues, and the issues make the application crash so... 07:27 < AfC> Respawner: Well, we can try and figure them out 07:27 < AfC> Respawner: there have been some threads & bugs about GtkApplication lately, so perhaps that would help 07:27 < Respawner> AfC: hackers/guillaume/gtk-application/ 07:28 < Respawner> AfC: some issues are commented in the code ;) 07:30 < Respawner> and there is a bug which appears when launching the app with args like "java .... GtkApp blabla blibli blublu" 07:30 < Respawner> it says "this app cannot open files" then when you start using the capp (eg clicking on a button) it crashes 07:31 < Respawner> I understand that I have to handle the "command-line" and "open" signals from that error 07:33 < Respawner> the "command-line" signal is probably not a hard to fix, but the "open" signal is a little more complex since it uses a GFile array 07:34 < Respawner> but maybe we can use a String array containing the path to each file instead? 07:35 < Respawner> I don't think that we need to cover GFile, the Java API is capable enough to handle files :D btw: It looks like some guys wants that we integrate the G[tk]Application class before the GNOME 3.4 release. [1] https://bugzilla.gnome.org/show_bug.cgi?id=658400 -- Guillaume Mazoyer |