diff options
author | monsta <[email protected]> | 2016-11-21 21:14:26 +0300 |
---|---|---|
committer | monsta <[email protected]> | 2016-11-21 21:14:26 +0300 |
commit | d0ddaedffa7d417a699cafce73c1e418515c4a28 (patch) | |
tree | 645b7a86e32b21113e1ce14f563bfb8d8900fa53 /libmate-panel-applet/test-dbus-applet.c | |
parent | 7dfeb78328039cf92a9f45d64c9b3662d967a1fe (diff) | |
download | mate-panel-d0ddaedffa7d417a699cafce73c1e418515c4a28.tar.bz2 mate-panel-d0ddaedffa7d417a699cafce73c1e418515c4a28.tar.xz |
move to GTK+3 (>= 3.14), drop GTK+2 code and --with-gtk build option
and require libmate-desktop >= 1.17
WARNING: use GTK+3 build of libmateweather for this build.
that lib is not migrated to GTK+3 only as we will possibly
use libgweather instead of it.
Diffstat (limited to 'libmate-panel-applet/test-dbus-applet.c')
-rw-r--r-- | libmate-panel-applet/test-dbus-applet.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/libmate-panel-applet/test-dbus-applet.c b/libmate-panel-applet/test-dbus-applet.c index f2033057..bfd00e5e 100644 --- a/libmate-panel-applet/test-dbus-applet.c +++ b/libmate-panel-applet/test-dbus-applet.c @@ -113,11 +113,7 @@ static void test_applet_handle_background_change (TestApplet *applet, MatePanelAppletBackgroundType type, GdkColor *color, -#if GTK_CHECK_VERSION (3, 0, 0) cairo_pattern_t *pattern, -#else - GdkPixmap *pixmap, -#endif gpointer dummy) { GdkWindow *window = gtk_widget_get_window (applet->label); @@ -125,29 +121,16 @@ test_applet_handle_background_change (TestApplet *applet, switch (type) { case PANEL_NO_BACKGROUND: g_message ("Setting background to default"); -#if GTK_CHECK_VERSION (3, 0, 0) gdk_window_set_background_pattern (window, NULL); -#else - gdk_window_set_back_pixmap (window, NULL, FALSE); -#endif break; case PANEL_COLOR_BACKGROUND: g_message ("Setting background to #%2x%2x%2x", color->red, color->green, color->blue); -#if GTK_CHECK_VERSION (3, 0, 0) gdk_window_set_background_pattern (window, NULL); -#else - gdk_window_set_back_pixmap (window, NULL, FALSE); -#endif break; case PANEL_PIXMAP_BACKGROUND: -#if GTK_CHECK_VERSION (3, 0, 0) g_message ("Setting background to '%p'", pattern); gdk_window_set_background_pattern (window, pattern); -#else - g_message ("Setting background to '%p'", pixmap); - gdk_window_set_back_pixmap (window, pixmap, FALSE); -#endif break; default: g_assert_not_reached (); |