summaryrefslogtreecommitdiff
path: root/gtk/gtkmenu.h
diff options
context:
space:
mode:
authorTim Janik <timj@gimp.org>1998-02-03 14:13:05 +0000
committerTim Janik <timj@src.gnome.org>1998-02-03 14:13:05 +0000
commitb45cd0430c79f9426036ced2809427e0920dd855 (patch)
treed278a375e959b28d1f59e87cdffcfaa06dd11273 /gtk/gtkmenu.h
parenta8629917ae91588cea02e0e8a20afc593a263cd7 (diff)
downloadgtk+-b45cd0430c79f9426036ced2809427e0920dd855.tar.gz
attach/detach to menu widget via
Tue Feb 3 15:09:55 1998 Tim Janik <timj@gimp.org> * gtk/gtkoptionmenu.h: * gtk/gtkoptionmenu.c: attach/detach to menu widget via * gtk/gtkmenu.h: * gtk/gtkmenu.c: new functions gtk_menu_attach_to_widget and gtk_menu_detach that correspond to the action of gtk_widget_set_parent and gtk_widget_unparent. * gtk/widget.c: few fixups.
Diffstat (limited to 'gtk/gtkmenu.h')
-rw-r--r--gtk/gtkmenu.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/gtk/gtkmenu.h b/gtk/gtkmenu.h
index 5cd5d28fa9..371d371381 100644
--- a/gtk/gtkmenu.h
+++ b/gtk/gtkmenu.h
@@ -37,10 +37,12 @@ extern "C" {
typedef struct _GtkMenu GtkMenu;
typedef struct _GtkMenuClass GtkMenuClass;
-typedef void (*GtkMenuPositionFunc) (GtkMenu *menu,
- gint *x,
- gint *y,
- gpointer user_data);
+typedef void (*GtkMenuPositionFunc) (GtkMenu *menu,
+ gint *x,
+ gint *y,
+ gpointer user_data);
+typedef void (*GtkMenuDetachFunc) (GtkWidget *attach_widget,
+ GtkMenu *menu);
struct _GtkMenu
{
@@ -84,6 +86,10 @@ void gtk_menu_set_active (GtkMenu *menu,
gint index);
void gtk_menu_set_accelerator_table (GtkMenu *menu,
GtkAcceleratorTable *table);
+void gtk_menu_attach_to_widget (GtkMenu *menu,
+ GtkWidget *attach_widget,
+ GtkMenuDetachFunc detacher);
+void gtk_menu_detach (GtkMenu *menu);
#ifdef __cplusplus