In an effort to convert a GnomeUIInfo based menu to a GtkUIManager one, I ran into a few annoying holes in the GTK+ documentation. First and foremost, the GTK+ tutorial itself is completely silent about GtkUIManager. Thankfully there is a
migration whitepaper in the API reference, but it is still missing a lot of info too. For example, it does not say what the signature of the callbacks for various action entry types look like, let alone give an example how such callbacks could work. And the API reference for GtkActionGroup, which lists the various action entry types does not specify callback signatures either. Only on the GtkAction, GtkToggleAction and GtkRadioAction pages the signatures are listed. Likely because that is where the signals they connect to are documented, but neither from the migration paper nor from the GtkActionEntry page one can find this out.
Another issue is that there apparently is no replacement for the
gnome_app_install_*_menu_hints calls. I'm not sure if such method should be in GTK+ itself, and if so, where it should go. Perhaps added to GtkStatusbar, or to a new higher level widget on top of GtkStatusbar (rather than an "application" type widget, I think). Or maybe simply added to gnome-app-helper as an interim solution.
But given the lack of such replacement method, a bigger problem is that no useful documentation is available on how to extract the tooltips from the gtk action entries and set them manually. The
connect-proxy signal for GtkActionGroup does mention menuitem tooltips, but that's it. Perhaps I've simply missed a thorough explanation, but if there is one, shouldn't the migration paper link to it?
And finally, something which is more of a problem with the API itself, there's a lack of placeholder macros like the
GNOMEUIINFO_MENU_*_ITEM ones. It's easy enough to replace them by fully written action entries, but all of a sudden menus cease to be translated as the translation strings are now part of the application rather than an underlying library. And worse, this is a setback in providing consistency, both for menu names, associated tooltip texts, and translations of both of these. (As for translations, there is a
gtk_action_group_set_translate_func method, but it is not clear or explained how to use it)
Enough about this — back to coding.
Comments
Thu, 31.12.2009 14:15 CET
They had a fox the other day, too. Funny, indeed.
Thu, 31.12.2009 03:07 CET
A better example, from a genui ne Windows ad campaign, as I s aw personally at Heathrow late this year: http://blogs [...]
Sat, 12.12.2009 18:40 CET
and you are happy with the lap top? you don't want to resell ? :) can't find anything as cheap on kapaza or ebay [...]
Sat, 12.12.2009 18:18 CET
It came with the 5500mAh batte ry.
Sat, 12.12.2009 12:39 CET
this laptop was sold out in 2 days time now they sell a dua l core atom of packard bell fo r 285euro
Thu, 10.12.2009 21:08 CET
Which type of battery does it contain? 4400mah small6 5500 mah standard or 6600mah Big
Sat, 05.12.2009 16:57 CET
The Celeron is probably has be tter performance anyway, but w orse battery life. The Atom is really neutered. I'd [...]
Wed, 28.10.2009 20:41 CET
The lack of checking for a cla shing UUID/name when defining networks is a clear bug in lib virt. We wrote some test [...]
Fri, 16.10.2009 01:45 CEST
This is sunlight shining throu gh the cracks in the Transform atorhus building of WesterGasF abriek in Amsterdam, isn't it?
Tue, 13.10.2009 18:23 CEST
What the beep is this? Damn beautiful picture though.