Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate to GtkBuilder #23

Open
GoogleCodeExporter opened this issue Aug 23, 2015 · 1 comment
Open

Migrate to GtkBuilder #23

GoogleCodeExporter opened this issue Aug 23, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

As Gnome itself is moving away from libglade,
eventually it needs to be done.

After the recent change (one, that made ids
unique inside toplevel), I simply open the glade file
in glade-3 and use auto-conversion with gtk+ compatibility
set to 2.16. (I save the file as snes9x-0.glade so it doesn't
overwrite the version in the tree), then use attached patch
(this one, as you may see is for rev236).

After putting that file in /usr/share/snes9x, it seems to work correctly.

Patch needs some polish though - i.e. block with gtk_accel_groups_from_object
is a giant hack - I simply take the first GtkAccelGroup I come upon,
technically a toplevel may have more than one group.

GtkComboBoxes are done that way, as I decided not to bother with
figuring out how to make _text versions work properly.


Original issue reported on code.google.com by [email protected] on 4 Jan 2010 at 11:46

Attachments:

@GoogleCodeExporter
Copy link
Author

I've committed the base change to GtkBuilder now. As you mentioned, this 
obviously
requires GTK+ 2.16. I haven't added a new preferences design yet, though. 

The accel groups "hack" you mentioned isn't a hack, since we decide how many 
groups
there will be and only create one.

I'm not sure what problem you had with the combo boxes, as the text versions 
seem to
work fine here without any changes.

Original comment by [email protected] on 16 Mar 2010 at 10:28

  • Changed state: Accepted

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant