summaryrefslogtreecommitdiff
path: root/gtk/gtktoolbar.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2011-12-18 14:28:01 -0500
committerMatthias Clasen <mclasen@redhat.com>2011-12-18 14:29:16 -0500
commit020c1846b750ffe56a83595919e88dd6b41bcece (patch)
tree45ac6faed0a05552b8bca2016615fb395f7ca310 /gtk/gtktoolbar.c
parentc6df2828b7ca6b65b7ab3c328ebb96bd78c087ee (diff)
downloadgtk+-020c1846b750ffe56a83595919e88dd6b41bcece.tar.gz
Use the workarea when placing popups
This uses the new workarea API to avoid placing popups underneath panels, docks, etc.
Diffstat (limited to 'gtk/gtktoolbar.c')
-rw-r--r--gtk/gtktoolbar.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtktoolbar.c b/gtk/gtktoolbar.c
index 5e7cfe1168..981c1f0e77 100644
--- a/gtk/gtktoolbar.c
+++ b/gtk/gtktoolbar.c
@@ -2659,7 +2659,7 @@ menu_position_func (GtkMenu *menu,
gtk_widget_get_window (priv->arrow_button));
if (monitor_num < 0)
monitor_num = 0;
- gdk_screen_get_monitor_geometry (screen, monitor_num, &monitor);
+ gdk_screen_get_monitor_workarea (screen, monitor_num, &monitor);
gtk_widget_get_allocation (priv->arrow_button, &allocation);