From cdf431991d5a5253a99fffb3166965c4e84fb143 Mon Sep 17 00:00:00 2001 From: monsta Date: Sun, 20 Nov 2016 22:15:39 +0300 Subject: move to GTK+3 (>= 3.14), drop GTK+2 code and --with-gtk build option --- libmate-desktop/mate-desktop-utils.c | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'libmate-desktop/mate-desktop-utils.c') diff --git a/libmate-desktop/mate-desktop-utils.c b/libmate-desktop/mate-desktop-utils.c index 99eef35..b86253e 100644 --- a/libmate-desktop/mate-desktop-utils.c +++ b/libmate-desktop/mate-desktop-utils.c @@ -36,7 +36,6 @@ #include "private.h" -#if GTK_CHECK_VERSION (3, 0, 0) static void gtk_style_shade (GdkRGBA *a, GdkRGBA *b, @@ -51,7 +50,6 @@ static void hls_to_rgb (gdouble *h, gdouble *l, gdouble *s); -#endif /** * mate_desktop_prepend_terminal_to_vector: @@ -208,13 +206,7 @@ mate_gdk_spawn_command_line_on_screen (GdkScreen *screen, const gchar *command, appinfo = g_app_info_create_from_commandline (command, NULL, G_APP_INFO_CREATE_NONE, error); if (appinfo) { -#if GTK_CHECK_VERSION (3, 0, 0) context = gdk_display_get_app_launch_context (gdk_screen_get_display (screen)); -#else - /* Deprecated in GDK 3.0 */ - context = gdk_app_launch_context_new (); - gdk_app_launch_context_set_screen (context, screen); -#endif res = g_app_info_launch (appinfo, NULL, G_APP_LAUNCH_CONTEXT (context), error); g_object_unref (context); g_object_unref (appinfo); @@ -236,9 +228,6 @@ _mate_desktop_init_i18n (void) { } } - -#if GTK_CHECK_VERSION (3, 0, 0) - /** * gtk_style_shade: * @a: the starting colour @@ -469,4 +458,3 @@ mate_desktop_gtk_style_get_dark_color (GtkStyleContext *style, gtk_style_context_get_background_color (style, state, color); gtk_style_shade (color, color, DARKNESS_MULT); } -#endif -- cgit v1.2.1