Re: GtkBuilder status
- From: Tristan Van Berkom <tristan van berkom gmail com>
- To: Tristan Van Berkom <tvb gnome org>
- Cc: gtk-devel-list gnome org
- Subject: Re: GtkBuilder status
- Date: Sat, 13 May 2006 12:54:50 -0400
Tristan Van Berkom wrote:
Now that I've taken a moment to take a closer look at GtkActions...
I feel a little
I'm afraid I'll have to take at least one day to better my knowlage about
exactly how GtkAction works, but from the little I already know and my
I dont see why the menu items cant be prefabricated with actions
and the action groups made available by the GtkMergable implementors
(allowing for seemless integration of get_accel_group() and such).
I will delve a little further into the action code and come up with
a little more solid...
more enthusiastic :-)
I would propose we take the following steps to use GtkAction without
o Make GtkAction available to GtkButton, GtkToggle/CheckButton,
and any other GtkWidgets that make sence
o A widget should be able to register to an existing action via a
on the GtkWidgetClass itself or some GtkActivatableIface. Setting
property on a widget should result in its getting registered to the
proxy list (and unregistered from the previously connected action
o As mentioned in the previous mail... action groups can be made
the Mergable, but I would propose that they be provided by
can now simply recurse over the hierarchy and collect the actions at
level of the heirarchy; GtkWindows could be made to setup its
any added code too (if so desired).
o A decision would have to be made here to either depricate the
along with the UIManager:
GtkWidget* gtk_action_create_menu_item (GtkAction *action);
GtkWidget* gtk_action_create_tool_item (GtkAction *action);
or to add an api:
GtkWidget* gtk_action_create_widget (GtkAction *action);
for the cases where it would create a regular button, toggle, radio
or whatnot, I dont
see any reason to create widgets based on actions without the need to
using UIManager though.
Note that extending the actions themselves represents a little work that
be done, but that extention isnt really required yet. The point here is
actions are usefull as an abstraction between the UI and buissiness
logic of any
app, so they probably shouldnt be limited to only menus and toolbars.
] [Thread Prev