diff options
author | Jody Goldberg <jody@gnome.org> | 2004-01-02 23:14:28 +0000 |
---|---|---|
committer | Jody Goldberg <jody@src.gnome.org> | 2004-01-02 23:14:28 +0000 |
commit | 9acc941959dfb420645e8ba033a2b15ce0821c16 (patch) | |
tree | 7ef30ec4135c6be6dbc3a8f734af0c25ecdda9db /gtk/gtkactiongroup.h | |
parent | df6a099ea9c099e304af7e75fc22d00a1c538b54 (diff) | |
download | gtk+-9acc941959dfb420645e8ba033a2b15ce0821c16.tar.gz |
add visible_horizontal, visible_vertical. (gtk_action_class_init) : here.
2004-01-01 Jody Goldberg <jody@gnome.org>
* gtk/gtkaction.c (_GtkActionPrivate) : add visible_horizontal,
visible_vertical.
(gtk_action_class_init) : here.
(gtk_action_init) : here.
(gtk_action_set_property) : here.
(gtk_action_get_property) : here.
(connect_proxy) : and here.
2003-12-30 Jody Goldberg <jody@gnome.org>
* gtk/gtkactiongroup.c (gtk_action_group_add_action_with_accel) : new
utility routine for use in derived GtkActions with the replicated code
from.
(gtk_action_group_add_actions_full) : here.
(gtk_action_group_add_toggle_actions_full) : here.
(gtk_action_group_add_radio_actions_full) : and here.
2003-12-24 Jody Goldberg <jody@gnome.org>
* gtk/gtkactiongroup.h : Add some const to the char * in
GtkActionEntry*. We're reccomending people pass static strings to
them, and not freeing them. This stems to flood of warnings that
result.
* gtk/gtkactiongroup.c (gtk_action_group_add_actions_full) : change
temp vars to const to match above.
(gtk_action_group_add_toggle_actions_full) : ditto.
(gtk_action_group_add_radio_actions_full) : ditto.
Diffstat (limited to 'gtk/gtkactiongroup.h')
-rw-r--r-- | gtk/gtkactiongroup.h | 36 |
1 files changed, 21 insertions, 15 deletions
diff --git a/gtk/gtkactiongroup.h b/gtk/gtkactiongroup.h index 7d8b4be203..bd4ff94f69 100644 --- a/gtk/gtkactiongroup.h +++ b/gtk/gtkactiongroup.h @@ -74,32 +74,32 @@ struct _GtkActionGroupClass struct _GtkActionEntry { - gchar *name; - gchar *stock_id; - gchar *label; - gchar *accelerator; - gchar *tooltip; + const gchar *name; + const gchar *stock_id; + const gchar *label; + const gchar *accelerator; + const gchar *tooltip; GCallback callback; }; struct _GtkToggleActionEntry { - gchar *name; - gchar *stock_id; - gchar *label; - gchar *accelerator; - gchar *tooltip; + const gchar *name; + const gchar *stock_id; + const gchar *label; + const gchar *accelerator; + const gchar *tooltip; GCallback callback; gboolean is_active; }; struct _GtkRadioActionEntry { - gchar *name; - gchar *stock_id; - gchar *label; - gchar *accelerator; - gchar *tooltip; + const gchar *name; + const gchar *stock_id; + const gchar *label; + const gchar *accelerator; + const gchar *tooltip; gint value; }; @@ -111,6 +111,12 @@ GtkAction *gtk_action_group_get_action (GtkActionGroup * GList *gtk_action_group_list_actions (GtkActionGroup *action_group); void gtk_action_group_add_action (GtkActionGroup *action_group, GtkAction *action); +void gtk_action_group_add_action_with_accel (GtkActionGroup *action_group, + GtkAction *action, + const char *name, + const char *accelerator, + const char *stock_id); + void gtk_action_group_remove_action (GtkActionGroup *action_group, GtkAction *action); void gtk_action_group_add_actions (GtkActionGroup *action_group, |