summaryrefslogtreecommitdiff
path: root/applets/notification_area/main.c
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2013-10-26 14:39:39 +0200
committerStefano Karapetsas <[email protected]>2013-10-26 14:39:39 +0200
commit5c99612305a3042d7096123619a83346492eadf3 (patch)
tree989b93367552259e0cce46c04b742b47266f31cd /applets/notification_area/main.c
parent57c9c407461f47ec09f0a2a631601450a0209af6 (diff)
downloadmate-panel-5c99612305a3042d7096123619a83346492eadf3.tar.bz2
mate-panel-5c99612305a3042d7096123619a83346492eadf3.tar.xz
notification_area: Add GTK3 support
Diffstat (limited to 'applets/notification_area/main.c')
-rw-r--r--applets/notification_area/main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/applets/notification_area/main.c b/applets/notification_area/main.c
index f752ca02..0b63bf65 100644
--- a/applets/notification_area/main.c
+++ b/applets/notification_area/main.c
@@ -141,7 +141,11 @@ static const GtkActionEntry menu_actions [] = {
G_CALLBACK (about_cb) }
};
+#if GTK_CHECK_VERSION (3, 0, 0)
+static void applet_change_background(MatePanelApplet* applet, MatePanelAppletBackgroundType type, GdkColor* color, cairo_pattern_t *pattern, AppletData* data)
+#else
static void applet_change_background(MatePanelApplet* applet, MatePanelAppletBackgroundType type, GdkColor* color, GdkPixmap* pixmap, AppletData* data)
+#endif
{
na_tray_force_redraw(data->tray);
}