summaryrefslogtreecommitdiff
path: root/src/terminal-tabs-menu.c
diff options
context:
space:
mode:
authorinfirit <[email protected]>2014-05-20 12:45:42 +0200
committerinfirit <[email protected]>2014-05-20 13:22:53 +0200
commit50ac67e11f946fb6539b30fbb86e60b94fa695d9 (patch)
tree5acef8e787da447ec51c4fd3b69f7a06cd13fbcb /src/terminal-tabs-menu.c
parent0b75b3c4b4354b72b604c6313ceef97d9ecb007c (diff)
downloadmate-terminal-50ac67e11f946fb6539b30fbb86e60b94fa695d9.tar.bz2
mate-terminal-50ac67e11f946fb6539b30fbb86e60b94fa695d9.tar.xz
Cleanup GTK_CHECK_VERSION and unify gtk+2/3 code where possible
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
Diffstat (limited to 'src/terminal-tabs-menu.c')
-rw-r--r--src/terminal-tabs-menu.c8
1 files changed, 0 insertions, 8 deletions
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);