summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>1998-12-18 19:15:46 +0000
committerOwen Taylor <otaylor@src.gnome.org>1998-12-18 19:15:46 +0000
commit8592d1c30937f587a7c77961c000d8fd935b7d25 (patch)
treeed88b6f4f644b73379f6e6dee94b5d3d19952cea
parent21ea00bef01efde67df520a400471ab3f4357877 (diff)
downloadgdk-pixbuf-8592d1c30937f587a7c77961c000d8fd935b7d25.tar.gz
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.
-rw-r--r--ChangeLog6
-rw-r--r--ChangeLog.pre-2-06
-rw-r--r--ChangeLog.pre-2-106
-rw-r--r--ChangeLog.pre-2-26
-rw-r--r--ChangeLog.pre-2-46
-rw-r--r--ChangeLog.pre-2-66
-rw-r--r--ChangeLog.pre-2-86
-rw-r--r--gtk/gtkmenu.c7
8 files changed, 48 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 42ef2c484..20468eb62 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0
index 42ef2c484..20468eb62 100644
--- a/ChangeLog.pre-2-0
+++ b/ChangeLog.pre-2-0
@@ -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
diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10
index 42ef2c484..20468eb62 100644
--- a/ChangeLog.pre-2-10
+++ b/ChangeLog.pre-2-10
@@ -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
diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2
index 42ef2c484..20468eb62 100644
--- a/ChangeLog.pre-2-2
+++ b/ChangeLog.pre-2-2
@@ -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
diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4
index 42ef2c484..20468eb62 100644
--- a/ChangeLog.pre-2-4
+++ b/ChangeLog.pre-2-4
@@ -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
diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6
index 42ef2c484..20468eb62 100644
--- a/ChangeLog.pre-2-6
+++ b/ChangeLog.pre-2-6
@@ -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
diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8
index 42ef2c484..20468eb62 100644
--- a/ChangeLog.pre-2-8
+++ b/ChangeLog.pre-2-8
@@ -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
diff --git a/gtk/gtkmenu.c b/gtk/gtkmenu.c
index 72932b17c..6008da04e 100644
--- a/gtk/gtkmenu.c
+++ b/gtk/gtkmenu.c
@@ -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),