summaryrefslogtreecommitdiff
path: root/gtk/gtktoolbar.c
diff options
context:
space:
mode:
authorMorten Welinder <terra@gnome.org>2004-02-04 21:17:54 +0000
committerMorten Welinder <mortenw@src.gnome.org>2004-02-04 21:17:54 +0000
commit0b14aeea3796876e1dd01c986ff152160ad78f10 (patch)
tree3306341a7189c589515dd357b19a2e518cf31d71 /gtk/gtktoolbar.c
parent9f35c7ae42d1be741813429543d079fd2967247c (diff)
downloadgdk-pixbuf-0b14aeea3796876e1dd01c986ff152160ad78f10.tar.gz
Show on the right screen. (Fixes bug 133411, apart from the leak.)
2004-02-04 Morten Welinder <terra@gnome.org> * gtk/gtktoolbar.c (show_menu): Show on the right screen. (Fixes bug 133411, apart from the leak.)
Diffstat (limited to 'gtk/gtktoolbar.c')
-rw-r--r--gtk/gtktoolbar.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/gtk/gtktoolbar.c b/gtk/gtktoolbar.c
index 224cb361d..9a4a337c9 100644
--- a/gtk/gtktoolbar.c
+++ b/gtk/gtktoolbar.c
@@ -2465,12 +2465,15 @@ show_menu (GtkToolbar *toolbar,
}
}
}
-
+
+ gtk_window_set_screen (GTK_WINDOW (gtk_widget_get_toplevel (GTK_WIDGET (priv->menu))),
+ gtk_widget_get_screen (GTK_WIDGET (toolbar)));
gtk_widget_show_all (GTK_WIDGET (priv->menu));
-
- gtk_menu_popup (GTK_MENU (priv->menu), NULL, NULL,
+
+ gtk_menu_popup (priv->menu, NULL, NULL,
menu_position_func, toolbar,
- event? event->button : 0, event? event->time : gtk_get_current_event_time());
+ event? event->button : 0,
+ event? event->time : gtk_get_current_event_time());
}
static void