From 71dfbd694341aa2d9758297fc1fd8ccde910a662 Mon Sep 17 00:00:00 2001 From: Stefano Karapetsas Date: Fri, 2 May 2014 19:36:57 +0200 Subject: Add GTK3 support --- sensors-applet/sensors-applet.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sensors-applet/sensors-applet.c') diff --git a/sensors-applet/sensors-applet.c b/sensors-applet/sensors-applet.c index ae5616d..7236591 100644 --- a/sensors-applet/sensors-applet.c +++ b/sensors-applet/sensors-applet.c @@ -123,6 +123,7 @@ static void destroy_cb(GtkWidget *widget, gpointer data) { return; } +#if !GTK_CHECK_VERSION (3, 0, 0) static void change_background_cb(MatePanelApplet *applet, MatePanelAppletBackgroundType type, GdkColor *color, @@ -161,6 +162,7 @@ static void change_background_cb(MatePanelApplet *applet, break; } } +#endif static void change_orient_cb (MatePanelApplet *applet, MatePanelAppletOrient orient, @@ -1397,9 +1399,11 @@ void sensors_applet_init(SensorsApplet *sensors_applet) { G_CALLBACK(style_set_cb), sensors_applet); +#if !GTK_CHECK_VERSION (3, 0, 0) g_signal_connect(sensors_applet->applet, "change_background", G_CALLBACK(change_background_cb), sensors_applet); +#endif g_signal_connect(G_OBJECT(sensors_applet->applet), "change_orient", G_CALLBACK(change_orient_cb), -- cgit v1.2.1