summaryrefslogtreecommitdiff
path: root/src/ui/menu.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2010-09-15 08:17:22 -0400
committerThomas Thurman <tthurman@gnome.org>2010-09-15 08:17:22 -0400
commit874f55b645d664925b49ee9972cd82dc39287098 (patch)
treec4720166471a09ad12cec7dcd429506561237946 /src/ui/menu.c
parent4e6a3abe146ea858b0097d230fbdfefd1e1cc14e (diff)
downloadmetacity-874f55b645d664925b49ee9972cd82dc39287098.tar.gz
metacity-874f55b645d664925b49ee9972cd82dc39287098.tar.bz2
Removes usage of (newly deprecated) gdk_display
Diffstat (limited to 'src/ui/menu.c')
-rw-r--r--src/ui/menu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/menu.c b/src/ui/menu.c
index ebac6eb..7060733 100644
--- a/src/ui/menu.c
+++ b/src/ui/menu.c
@@ -139,7 +139,7 @@ menu_closed (GtkMenu *widget,
menu = data;
meta_frames_notify_menu_hide (menu->frames);
- (* menu->func) (menu, gdk_display,
+ (* menu->func) (menu, GDK_DISPLAY_XDISPLAY (gdk_display_get_default ()),
menu->client_xwindow,
gtk_get_current_event_time (),
0, 0,
@@ -158,7 +158,7 @@ activate_cb (GtkWidget *menuitem, gpointer data)
md = data;
meta_frames_notify_menu_hide (md->menu->frames);
- (* md->menu->func) (md->menu, gdk_display,
+ (* md->menu->func) (md->menu, GDK_DISPLAY_XDISPLAY (gdk_display_get_default ()),
md->menu->client_xwindow,
gtk_get_current_event_time (),
md->op,