diff options
author | Tristan Van Berkom <tvb@gnome.org> | 2008-11-06 17:19:08 +0000 |
---|---|---|
committer | Tristan Van Berkom <tvb@src.gnome.org> | 2008-11-06 17:19:08 +0000 |
commit | 70a5f5388e7ebd416bf1c81dbacc49cdea9365f2 (patch) | |
tree | 72ff870c0fb7ad7063ea42d6e8c6478405f75b40 /gtk/gtkmenuitem.h | |
parent | 71f27b36de67fe83662cc0c5e98d2b13ed4da3b0 (diff) | |
download | gtk+-70a5f5388e7ebd416bf1c81dbacc49cdea9365f2.tar.gz |
added new apis gtk_menu_item_[set/get]_label() and
2008-11-06 Tristan Van Berkom <tvb@gnome.org>
* gtk/gtkmenuitem.[ch]: added new apis gtk_menu_item_[set/get]_label() and
gtk_menu_item_[set/get]_use_underline() with "label" and "use-underline"
properties, constructors cleaned up to use g_object_new().
GtkMenuItemClass take new vfuncs ->get/set_label().
* gtk/gtkcheckmenuitem.c: constructors cleaned up to use g_object_new().
* gtk/gtkimagemenuitem.[ch]: added new apis gtk_image_menu_item_[get/set]_use_stock()
and gtk_image_menu_item_set_accel_group() with "use-stock" and write-only
"accel-group" properties. constructors cleaned up to use g_object_new().
svn path=/trunk/; revision=21766
Diffstat (limited to 'gtk/gtkmenuitem.h')
-rw-r--r-- | gtk/gtkmenuitem.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/gtk/gtkmenuitem.h b/gtk/gtkmenuitem.h index 6c56409ad9..b8a1f1a91f 100644 --- a/gtk/gtkmenuitem.h +++ b/gtk/gtkmenuitem.h @@ -86,12 +86,13 @@ struct _GtkMenuItemClass gint *requisition); void (* toggle_size_allocate) (GtkMenuItem *menu_item, gint allocation); + void (* set_label) (GtkMenuItem *menu_item, + const gchar *label); + G_CONST_RETURN gchar *(* get_label) (GtkMenuItem *menu_item); /* Padding for future expansion */ void (*_gtk_reserved1) (void); void (*_gtk_reserved2) (void); - void (*_gtk_reserved3) (void); - void (*_gtk_reserved4) (void); }; @@ -116,6 +117,14 @@ void gtk_menu_item_set_accel_path (GtkMenuItem *menu_item, const gchar *accel_path); G_CONST_RETURN gchar* gtk_menu_item_get_accel_path (GtkMenuItem *menu_item); +void gtk_menu_item_set_label (GtkMenuItem *menu_item, + const gchar *label); +G_CONST_RETURN gchar *gtk_menu_item_get_label (GtkMenuItem *menu_item); + +void gtk_menu_item_set_use_underline (GtkMenuItem *menu_item, + gboolean setting); +gboolean gtk_menu_item_get_use_underline (GtkMenuItem *menu_item); + /* private */ void _gtk_menu_item_refresh_accel_path (GtkMenuItem *menu_item, const gchar *prefix, |