Set the usize on the tearoff window so when we reparent the window out,
Fri Dec 18 14:17:14 1998 Owen Taylor <otaylor@redhat.com> * gtk/gtkmenu.c (gtk_menu_popup): Set the usize on the tearoff window so when we reparent the window out, the window doesn't shrink down.
This commit is contained in:
parent
21ea00bef0
commit
8592d1c309
@ -1,3 +1,9 @@
|
||||
Fri Dec 18 14:17:14 1998 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtkmenu.c (gtk_menu_popup): Set the usize on the
|
||||
tearoff window so when we reparent the window out,
|
||||
the window doesn't shrink down.
|
||||
|
||||
1998-12-18 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||
|
||||
* configure.in: do not export the glib flags for thread support to
|
||||
|
@ -1,3 +1,9 @@
|
||||
Fri Dec 18 14:17:14 1998 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtkmenu.c (gtk_menu_popup): Set the usize on the
|
||||
tearoff window so when we reparent the window out,
|
||||
the window doesn't shrink down.
|
||||
|
||||
1998-12-18 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||
|
||||
* configure.in: do not export the glib flags for thread support to
|
||||
|
@ -1,3 +1,9 @@
|
||||
Fri Dec 18 14:17:14 1998 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtkmenu.c (gtk_menu_popup): Set the usize on the
|
||||
tearoff window so when we reparent the window out,
|
||||
the window doesn't shrink down.
|
||||
|
||||
1998-12-18 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||
|
||||
* configure.in: do not export the glib flags for thread support to
|
||||
|
@ -1,3 +1,9 @@
|
||||
Fri Dec 18 14:17:14 1998 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtkmenu.c (gtk_menu_popup): Set the usize on the
|
||||
tearoff window so when we reparent the window out,
|
||||
the window doesn't shrink down.
|
||||
|
||||
1998-12-18 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||
|
||||
* configure.in: do not export the glib flags for thread support to
|
||||
|
@ -1,3 +1,9 @@
|
||||
Fri Dec 18 14:17:14 1998 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtkmenu.c (gtk_menu_popup): Set the usize on the
|
||||
tearoff window so when we reparent the window out,
|
||||
the window doesn't shrink down.
|
||||
|
||||
1998-12-18 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||
|
||||
* configure.in: do not export the glib flags for thread support to
|
||||
|
@ -1,3 +1,9 @@
|
||||
Fri Dec 18 14:17:14 1998 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtkmenu.c (gtk_menu_popup): Set the usize on the
|
||||
tearoff window so when we reparent the window out,
|
||||
the window doesn't shrink down.
|
||||
|
||||
1998-12-18 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||
|
||||
* configure.in: do not export the glib flags for thread support to
|
||||
|
@ -1,3 +1,9 @@
|
||||
Fri Dec 18 14:17:14 1998 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtkmenu.c (gtk_menu_popup): Set the usize on the
|
||||
tearoff window so when we reparent the window out,
|
||||
the window doesn't shrink down.
|
||||
|
||||
1998-12-18 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||
|
||||
* configure.in: do not export the glib flags for thread support to
|
||||
|
@ -376,7 +376,11 @@ gtk_menu_popup (GtkMenu *menu,
|
||||
widget->window,
|
||||
0, 0, 0, 0, -1, -1);
|
||||
gdk_gc_unref(gc);
|
||||
|
||||
|
||||
gtk_widget_set_usize (menu->tearoff_window,
|
||||
widget->requisition.width,
|
||||
widget->requisition.height);
|
||||
|
||||
gdk_window_set_back_pixmap (menu->tearoff_window->window, pixmap, FALSE);
|
||||
gdk_pixmap_unref (pixmap);
|
||||
|
||||
@ -599,6 +603,7 @@ gtk_menu_set_tearoff_state (GtkMenu *menu,
|
||||
GtkWidget *attach_widget;
|
||||
|
||||
menu->tearoff_window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
|
||||
gtk_widget_set_app_paintable (menu->tearoff_window, TRUE);
|
||||
gtk_signal_connect_object (GTK_OBJECT (menu->tearoff_window),
|
||||
"key_press_event",
|
||||
GTK_SIGNAL_FUNC (gtk_menu_key_press),
|
||||
|
Loading…
Reference in New Issue
Block a user