new fundtion to return the widget that the menu is attached to.
Sun Feb 8 07:06:54 1998 Tim Janik <timj@gimp.org> * gtk/gtkmenu.c (gtk_menu_get_attach_widget): new fundtion to return the widget that the menu is attached to.
This commit is contained in:
parent
7a3af96d84
commit
38fac1be63
@ -1,3 +1,8 @@
|
||||
Sun Feb 8 07:06:54 1998 Tim Janik <timj@gimp.org>
|
||||
|
||||
* gtk/gtkmenu.c (gtk_menu_get_attach_widget): new fundtion to return
|
||||
the widget that the menu is attached to.
|
||||
|
||||
Sat Feb 7 11:33:08 1998 Owen Taylor <owt1@cornell.edu>
|
||||
|
||||
* gdk/gdkgc.c (gdk_gc_copy): use a mask of 0xffffffff
|
||||
|
@ -1,3 +1,8 @@
|
||||
Sun Feb 8 07:06:54 1998 Tim Janik <timj@gimp.org>
|
||||
|
||||
* gtk/gtkmenu.c (gtk_menu_get_attach_widget): new fundtion to return
|
||||
the widget that the menu is attached to.
|
||||
|
||||
Sat Feb 7 11:33:08 1998 Owen Taylor <owt1@cornell.edu>
|
||||
|
||||
* gdk/gdkgc.c (gdk_gc_copy): use a mask of 0xffffffff
|
||||
|
@ -1,3 +1,8 @@
|
||||
Sun Feb 8 07:06:54 1998 Tim Janik <timj@gimp.org>
|
||||
|
||||
* gtk/gtkmenu.c (gtk_menu_get_attach_widget): new fundtion to return
|
||||
the widget that the menu is attached to.
|
||||
|
||||
Sat Feb 7 11:33:08 1998 Owen Taylor <owt1@cornell.edu>
|
||||
|
||||
* gdk/gdkgc.c (gdk_gc_copy): use a mask of 0xffffffff
|
||||
|
@ -1,3 +1,8 @@
|
||||
Sun Feb 8 07:06:54 1998 Tim Janik <timj@gimp.org>
|
||||
|
||||
* gtk/gtkmenu.c (gtk_menu_get_attach_widget): new fundtion to return
|
||||
the widget that the menu is attached to.
|
||||
|
||||
Sat Feb 7 11:33:08 1998 Owen Taylor <owt1@cornell.edu>
|
||||
|
||||
* gdk/gdkgc.c (gdk_gc_copy): use a mask of 0xffffffff
|
||||
|
@ -1,3 +1,8 @@
|
||||
Sun Feb 8 07:06:54 1998 Tim Janik <timj@gimp.org>
|
||||
|
||||
* gtk/gtkmenu.c (gtk_menu_get_attach_widget): new fundtion to return
|
||||
the widget that the menu is attached to.
|
||||
|
||||
Sat Feb 7 11:33:08 1998 Owen Taylor <owt1@cornell.edu>
|
||||
|
||||
* gdk/gdkgc.c (gdk_gc_copy): use a mask of 0xffffffff
|
||||
|
@ -1,3 +1,8 @@
|
||||
Sun Feb 8 07:06:54 1998 Tim Janik <timj@gimp.org>
|
||||
|
||||
* gtk/gtkmenu.c (gtk_menu_get_attach_widget): new fundtion to return
|
||||
the widget that the menu is attached to.
|
||||
|
||||
Sat Feb 7 11:33:08 1998 Owen Taylor <owt1@cornell.edu>
|
||||
|
||||
* gdk/gdkgc.c (gdk_gc_copy): use a mask of 0xffffffff
|
||||
|
@ -1,3 +1,8 @@
|
||||
Sun Feb 8 07:06:54 1998 Tim Janik <timj@gimp.org>
|
||||
|
||||
* gtk/gtkmenu.c (gtk_menu_get_attach_widget): new fundtion to return
|
||||
the widget that the menu is attached to.
|
||||
|
||||
Sat Feb 7 11:33:08 1998 Owen Taylor <owt1@cornell.edu>
|
||||
|
||||
* gdk/gdkgc.c (gdk_gc_copy): use a mask of 0xffffffff
|
||||
|
@ -207,6 +207,20 @@ gtk_menu_attach_to_widget (GtkMenu *menu,
|
||||
*/
|
||||
}
|
||||
|
||||
GtkWidget*
|
||||
gtk_menu_get_attach_widget (GtkMenu *menu)
|
||||
{
|
||||
GtkMenuAttachData *data;
|
||||
|
||||
g_return_val_if_fail (menu != NULL, NULL);
|
||||
g_return_val_if_fail (GTK_IS_MENU (menu), NULL);
|
||||
|
||||
data = gtk_object_get_data (GTK_OBJECT (menu), attach_data_key);
|
||||
if (data)
|
||||
return data->attach_widget;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void
|
||||
gtk_menu_detach (GtkMenu *menu)
|
||||
{
|
||||
|
@ -89,6 +89,7 @@ void gtk_menu_set_accelerator_table (GtkMenu *menu,
|
||||
void gtk_menu_attach_to_widget (GtkMenu *menu,
|
||||
GtkWidget *attach_widget,
|
||||
GtkMenuDetachFunc detacher);
|
||||
GtkWidget* gtk_menu_get_attach_widget (GtkMenu *menu);
|
||||
void gtk_menu_detach (GtkMenu *menu);
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user