From 3fc6d6c429837cdd4ef2d17c2b9f20859187fa93 Mon Sep 17 00:00:00 2001 From: infirit Date: Mon, 19 May 2014 17:22:45 +0200 Subject: Cleanup GTK_CHECK_VERSION and unify gtk+2/3 code where possible Replace functions available in gtk+2 and gtk+3 gdk_window_get_* | since 2.24 gtk_widget_get_allocation | since 2.18 gtk_widget_get_window | since 2.14 gtk_window_get_group | since 2.10 gtk_widget_get_mapped | since 2.20 gtk_widget_get_realized | since 2.20 gdk_window_get_display | since 2.24 Remove deprecated GtkNotebookPage and check. --- pluma/pluma-encodings-combo-box.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'pluma/pluma-encodings-combo-box.c') diff --git a/pluma/pluma-encodings-combo-box.c b/pluma/pluma-encodings-combo-box.c index cb056d03..2f355424 100644 --- a/pluma/pluma-encodings-combo-box.c +++ b/pluma/pluma-encodings-combo-box.c @@ -208,11 +208,7 @@ add_or_remove (PlumaEncodingsComboBox *menu, gtk_window_set_transient_for (GTK_WINDOW (dialog), GTK_WINDOW (toplevel)); -#if GTK_CHECK_VERSION (3, 0, 0) wg = gtk_window_get_group (GTK_WINDOW (toplevel)); -#else - wg = GTK_WINDOW (toplevel)->group; -#endif if (wg == NULL) { wg = gtk_window_group_new (); -- cgit v1.2.1