Re: [gtkmvc-users] Working with subviews
Brought to you by:
cavada
From: Steve M. <smc...@gm...> - 2012-05-25 21:23:38
|
On Fri, May 25, 2012 at 3:27 PM, <to...@ce...> wrote: > On 25.05.2012, at 17:26, Steve McGrath wrote: > >> except that if a subview's controls have accelerator keys defined, I get this warning: "GtkWarning: IA__gtk_window_add_accel_group: assertion `GTK_IS_WINDOW (window)' failed" > > You used the Common tab in Glade's inspector? Libglade or GtkBuilder? Yes, I defined the accelerator keys for a couple buttons using the common properties in Glade. I'm using GtkBuilder format for all my UI definitions. >> I'd like to find a way to define pieces of the toolbar/menubar in each subview, and connect their signals directly to handlers in the subcontrollers. > > That's how examples/converter works. I'll have to take a look at that one, thanks. >> Does anyone have any insight or examples? > > If you can show your code I'll write one ;) If you want to take a look, my code can be seen on github at https://github.com/smcgrath/azathoth-client/tree/gtkmvc-refactor For context, this application is used to monitor and control a robot over a wi-fi connection. It's kind of a mess because I got a little ways into it and decided to refactor everything into the gtkmvc framework before proceeding any further. Roberto: Thank you, I think this explanation is a bit more clear than the old message from you that I quoted. Part of the problem I think is more generally GTK-related, in that I haven't worked with the UIManager or Actions/ActionGroups yet. So far I've always defined toolbars and menubars traditionally, as object hierarchies within my main window's glade file. Any small example of how to connect all the "plumbing" of UIManager in a gtkmvc application would be useful indeed. Thanks much, -Steve McGrath -- If it ain't broke, you're not using a new enough version |