After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 669289 - gnotravex: Crashes with GTK 3.3.12
gnotravex: Crashes with GTK 3.3.12
Status: RESOLVED FIXED
Product: gnome-games-superseded
Classification: Deprecated
Component: gnotravex
3.3.x
Other All
: Normal major
: ---
Assigned To: GNOME Games maintainers
GNOME Games maintainers
Depends on:
Blocks:
 
 
Reported: 2012-02-03 03:50 UTC by Jeremy Bicha
Modified: 2012-02-05 05:59 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
gnotravex: Support the latest GTK app menu changes (6.99 KB, patch)
2012-02-03 03:50 UTC, Jeremy Bicha
none Details | Review
gnotravex: Support the latest GTK app menu changes (9.24 KB, patch)
2012-02-03 20:57 UTC, Jeremy Bicha
none Details | Review
gnotravex: Support the latest GTK app menu changes (10.61 KB, patch)
2012-02-03 22:26 UTC, Jeremy Bicha
none Details | Review
Rebase with current trunk (10.61 KB, patch)
2012-02-04 22:46 UTC, Jeremy Bicha
none Details | Review

Description Jeremy Bicha 2012-02-03 03:50:44 UTC
The app menu API changed again
This requires GTK 3.3.11
Comment 1 Jeremy Bicha 2012-02-03 03:50:46 UTC
Created attachment 206668 [details] [review]
gnotravex: Support the latest GTK app menu changes
Comment 2 Piotr Drąg 2012-02-03 17:48:34 UTC
Please add translatable="yes" to label attributes to fix internationalization.

Also intltool have a problem with ' apostrophes, so it's better to use " instead.
Comment 3 Jeremy Bicha 2012-02-03 17:57:21 UTC
Thanks for looking at this. Apostrophes where? Are you saying I need to convert all the ' to " and the " to ' in the menu section?

By the way, this code is basically the same format as is found in the sample code at http://developer.gnome.org/gtk3/3.3/GtkApplication.html
Comment 4 Piotr Drąg 2012-02-03 18:10:39 UTC
(In reply to comment #3)
> Thanks for looking at this. Apostrophes where? Are you saying I need to convert
> all the ' to " and the " to ' in the menu section?
> 

Yes. intltool expects translatable="yes" and refuses translatable='yes'.

> By the way, this code is basically the same format as is found in the sample
> code at http://developer.gnome.org/gtk3/3.3/GtkApplication.html

This code is wrong, I'll file a bug about it.

Unfortunately, even with translatable="yes" those string don't appear in PO files. Maybe you could put XML code in separate file, like gnome-contacts successfully does?
Comment 5 Jeremy Bicha 2012-02-03 19:03:57 UTC
Sure, I can update the patch to move the app menu to a separate ui file. That would get rid of all the extra quotation marks and + signs which are annoying and easy to make mistakes. Thanks!
Comment 6 Jeremy Bicha 2012-02-03 20:57:27 UTC
Created attachment 206727 [details] [review]
gnotravex: Support the latest GTK app menu changes

The app menu API changed again (requires GTK 3.3.11)
Move appmenu UI code to separate UI/gresources file
(requires glib 2.31.10)
Comment 7 Jeremy Bicha 2012-02-03 21:01:16 UTC
Actually, I can't get builder add_from_resource to work. I did look at gnome-contacts and saw it uses a custom vapi, but that's beyond my experience.

http://git.gnome.org/browse/gnome-contacts/tree/vapi/custom.vapi
Comment 8 Piotr Drąg 2012-02-03 21:44:12 UTC
Maybe this commit http://git.gnome.org/browse/gnome-contacts/commit/?id=b95c9c928345fba18c1d25a2d576f0c3951a5bf2 helps in any way. It's the one that introduced app menu from resources in gnome-contacts.
Comment 9 Jeremy Bicha 2012-02-03 22:26:27 UTC
Created attachment 206732 [details] [review]
gnotravex: Support the latest GTK app menu changes

The app menu API changed again (requires GTK 3.3.11)
Move appmenu UI code to separate UI/gresources file
(requires glib 2.31.10)
Comment 10 Jeremy Bicha 2012-02-04 22:46:22 UTC
Created attachment 206789 [details] [review]
Rebase with current trunk

gnotravex: Support the latest GTK app menu changes

The app menu API changed again (requires GTK 3.3.11)
Move appmenu UI code to separate UI/gresources file
(requires glib 2.31.10)
Comment 11 Robert Ancell 2012-02-05 05:59:13 UTC
Hi, I've pushed the core changes in this patch, but dropped the hard requirement on the latest GTK, dropped the resources changes (this should be in a separate bug).  Thanks.