summaryrefslogtreecommitdiff
path: root/gtk/gtkuimanager.h
diff options
context:
space:
mode:
authorMatthias Clasen <maclas@gmx.de>2003-08-29 22:42:37 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2003-08-29 22:42:37 +0000
commit879880e746658f1f722ffc4a63635fc307409810 (patch)
tree09d3d768819fbe20deef6bcb4bbc63921babd641 /gtk/gtkuimanager.h
parenta5c6a1759d76a5220dbfed2d0c94fbddf283f421 (diff)
downloadgtk+-879880e746658f1f722ffc4a63635fc307409810.tar.gz
Add a boolean property, "add_tearoffs" with setter and getter. If it is
2003-08-30 Matthias Clasen <maclas@gmx.de> * gtk/gtkuimanager.[hc]: Add a boolean property, "add_tearoffs" with setter and getter. If it is set, add tearoff menu items to regular menus, but not to popups. * tests/testmerge.c: Add button to test the generation of tearoff menu items.
Diffstat (limited to 'gtk/gtkuimanager.h')
-rw-r--r--gtk/gtkuimanager.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/gtk/gtkuimanager.h b/gtk/gtkuimanager.h
index a6c1e6dfe4..844a39ca0e 100644
--- a/gtk/gtkuimanager.h
+++ b/gtk/gtkuimanager.h
@@ -39,7 +39,7 @@
#include <gtk/gtkactiongroup.h>
#define GTK_TYPE_UI_MANAGER (gtk_ui_manager_get_type ())
-#define GTK_UI_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_UI_MANAGER, GtkMenuMerge))
+#define GTK_UI_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_UI_MANAGER, GtkUIManager))
#define GTK_UI_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_UI_MANAGER, GtkUIManagerClass))
#define GTK_IS_UI_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_UI_MANAGER))
#define GTK_IS_UI_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((obj), GTK_TYPE_UI_MANAGER))
@@ -76,6 +76,10 @@ struct _GtkUIManagerClass {
GType gtk_ui_manager_get_type (void);
GtkUIManager *gtk_ui_manager_new (void);
+void gtk_ui_manager_set_add_tearoffs (GtkUIManager *self,
+ gboolean add_tearoffs);
+gboolean gtk_ui_manager_get_add_tearoffs (GtkUIManager *self);
+
/* these two functions will dirty all merge nodes, as they may need to
* be connected up to different actions */
void gtk_ui_manager_insert_action_group (GtkUIManager *self,