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:
Owen Taylor 1998-12-18 19:15:46 +00:00 committed by Owen Taylor
parent 21ea00bef0
commit 8592d1c309
8 changed files with 48 additions and 1 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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),