|
View:
New views
5 Messages
—
Rating Filter:
Alert me
|
|
|
AnjutaUI and GtkActionGroupHi,
Does anyone know how I can get an instance of GtkActionGroup from AnjutaUI? What I need to do here is find an easy way of disabling all of the git menu's items in one function call. As it is now I just disable the whole menu, but as you may know that's not HIG compliant. I've been doing some looking around and this seems like the best way to get that done. But, I can't seem to be able to get a GtkActionGroup object for my object from AnjutaUI. Is there an easy way to do this in Anjuta? Thanks, James ------------------------------------------------------------------------------ _______________________________________________ Anjuta-devel mailing list Anjuta-devel@... https://lists.sourceforge.net/lists/listinfo/anjuta-devel |
|
|
Re: AnjutaUI and GtkActionGroupHi!
Probably, gtk_ui_manager_get_action_groups() and then filter the list using gtk_action_group_get_name(). Not very elegant though. Regards, Johannes Am Montag, den 27.07.2009, 00:03 -0700 schrieb James Liggett: > Hi, > Does anyone know how I can get an instance of GtkActionGroup from > AnjutaUI? What I need to do here is find an easy way of disabling all of > the git menu's items in one function call. As it is now I just disable > the whole menu, but as you may know that's not HIG compliant. I've been > doing some looking around and this seems like the best way to get that > done. But, I can't seem to be able to get a GtkActionGroup object for my > object from AnjutaUI. Is there an easy way to do this in Anjuta? > > Thanks, > James > > > ------------------------------------------------------------------------------ > _______________________________________________ > Anjuta-devel mailing list > Anjuta-devel@... > https://lists.sourceforge.net/lists/listinfo/anjuta-devel ------------------------------------------------------------------------------ _______________________________________________ Anjuta-devel mailing list Anjuta-devel@... https://lists.sourceforge.net/lists/listinfo/anjuta-devel |
|
|
Re: AnjutaUI and GtkActionGroupOn Mon, 2009-07-27 at 09:16 +0200, Johannes Schmid wrote:
> Hi! > > Probably, gtk_ui_manager_get_action_groups() and then filter the list > using gtk_action_group_get_name(). Not very elegant though. I just figured out a working solution. It turns out that anjuta_ui_add_action_group_entries returns the GtkActionGroup that it creates. So I just keep that in the plugin structure for later reference. Then, I split the Git menu into two action groups: one for just the toplevel menu item itself, and another for the menu items. So now I can disable all of the menu items in one shot without disabling the whole menu. Thanks, James ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Anjuta-devel mailing list Anjuta-devel@... https://lists.sourceforge.net/lists/listinfo/anjuta-devel |
|
|
Re: AnjutaUI and GtkActionGroupHi!
Just a note, could you please merge the micro commits to a bigger one in the future because that kinds of clutters history. Thanks, Johannes Am Montag, den 27.07.2009, 16:40 -0700 schrieb James Liggett: > On Mon, 2009-07-27 at 09:16 +0200, Johannes Schmid wrote: > > Hi! > > > > Probably, gtk_ui_manager_get_action_groups() and then filter the list > > using gtk_action_group_get_name(). Not very elegant though. > I just figured out a working solution. It turns out that > anjuta_ui_add_action_group_entries returns the GtkActionGroup that it > creates. So I just keep that in the plugin structure for later > reference. Then, I split the Git menu into two action groups: one for > just the toplevel menu item itself, and another for the menu items. So > now I can disable all of the menu items in one shot without disabling > the whole menu. > > Thanks, > James > ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Anjuta-devel mailing list Anjuta-devel@... https://lists.sourceforge.net/lists/listinfo/anjuta-devel |
|
|
Re: AnjutaUI and GtkActionGroupOn Tue, 2009-07-28 at 12:18 +0200, Johannes Schmid wrote:
> Hi! > > Just a note, could you please merge the micro commits to a bigger one in > the future because that kinds of clutters history. I certainly could, but I did this to make sure we could revert individual changes in case some dialogs were broken and some weren't. Honestly I'm not quite sure if all of the dialogs work as the HIG would expect. Some might, but I'm not quite sure about others. I would rather risk cluttering the history rather than have to redo the whole thing in case I did something wrong. And, as a general rule of thumb, I usually would rather overdo it than not commit often enough. That way, if we find I might have screwed up in a few places, we can deal with those on a case by case basis as opposed to reverting the whole thing. James ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Anjuta-devel mailing list Anjuta-devel@... https://lists.sourceforge.net/lists/listinfo/anjuta-devel |
| Free embeddable forum powered by Nabble | Forum Help |