From 50ac67e11f946fb6539b30fbb86e60b94fa695d9 Mon Sep 17 00:00:00 2001 From: infirit Date: Tue, 20 May 2014 12:45:42 +0200 Subject: Cleanup GTK_CHECK_VERSION and unify gtk+2/3 code where possible MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Always use gdk_window_get_display and GDK_WINDOW_XID Replace GtkObject with GObject Always use gtk_message_dialog_get_message_area (since gtk 2.22) Unify notebook code between gtk2 and gtk3 --- src/terminal-tabs-menu.c | 8 -------- 1 file changed, 8 deletions(-) (limited to 'src/terminal-tabs-menu.c') diff --git a/src/terminal-tabs-menu.c b/src/terminal-tabs-menu.c index 56e427b..f891d47 100644 --- a/src/terminal-tabs-menu.c +++ b/src/terminal-tabs-menu.c @@ -265,11 +265,7 @@ notebook_page_reordered_cb (GtkNotebook *notebook, static void notebook_page_switch_cb (GtkNotebook *notebook, -#if GTK_CHECK_VERSION (2, 90, 6) GtkWidget *page, -#else - gpointer page, -#endif guint position, TerminalTabsMenu *menu) { @@ -277,11 +273,7 @@ notebook_page_switch_cb (GtkNotebook *notebook, TerminalScreen *screen; GtkAction *action; -#if GTK_CHECK_VERSION (2, 90, 6) container = TERMINAL_SCREEN_CONTAINER (page); -#else - container = TERMINAL_SCREEN_CONTAINER (gtk_notebook_get_nth_page (notebook, position)); -#endif screen = terminal_screen_container_get_screen (container); action = g_object_get_data (G_OBJECT (screen), DATA_KEY); -- cgit v1.2.1