From 20615934a9d4faf8cd45de56c51357d985461267 Mon Sep 17 00:00:00 2001 From: infirit Date: Sat, 25 Oct 2014 12:35:42 +0200 Subject: Cleanup GTK_CHECK_VERSION and unify where possible gdk_x11_window_lookup_for_display since 2.24 GDK_WINDOW_XID since always gtk_widget_get_visible since 2.18 gtk_widget_set_mapped since 2.20 gdk_event_new since 2.2 gdk_x11_window_lookup_for_display since 2.24 gdk_text_property_to_utf8_list_for_display since 2.2 gtk_widget_get_realized since 2.20 gdk_visual_get_depth since 2.22 gtk_widget_get_window since 2.14 gtk_widget_set_allocation since 2.18 --- src/ui/menu.c | 7 ------- 1 file changed, 7 deletions(-) (limited to 'src/ui/menu.c') diff --git a/src/ui/menu.c b/src/ui/menu.c index baf192d7..41abc441 100644 --- a/src/ui/menu.c +++ b/src/ui/menu.c @@ -389,19 +389,12 @@ meta_window_menu_new (MetaFrames *frames, meta_verbose ("Creating %d-workspace menu current space %lu\n", n_workspaces, active_workspace); - #if GTK_CHECK_VERSION(3, 0, 0) GdkWindow* window = gtk_widget_get_window(GTK_WIDGET(frames)); display = GDK_WINDOW_XDISPLAY (window); screen = gdk_window_get_screen (window); xroot = GDK_WINDOW_XID (gdk_screen_get_root_window (screen)); - #else - display = gdk_x11_drawable_get_xdisplay (GTK_WIDGET (frames)->window); - - screen = gdk_drawable_get_screen (GTK_WIDGET (frames)->window); - xroot = GDK_DRAWABLE_XID (gdk_screen_get_root_window (screen)); - #endif submenu = gtk_menu_new (); -- cgit v1.2.1