diff options
author | monsta <[email protected]> | 2016-11-23 21:46:17 +0300 |
---|---|---|
committer | monsta <[email protected]> | 2016-11-23 21:46:17 +0300 |
commit | 5ec8b38b3706e5014316d17ddbf46b64e4bafc9b (patch) | |
tree | f75c33455aed0ce4cb6dc76e9dbfc81556d86028 /sensors-applet/active-sensor.c | |
parent | 6bbbccfde430a26b4d288a97117c87c622986f69 (diff) | |
download | mate-sensors-applet-5ec8b38b3706e5014316d17ddbf46b64e4bafc9b.tar.bz2 mate-sensors-applet-5ec8b38b3706e5014316d17ddbf46b64e4bafc9b.tar.xz |
move to GTK+3 (>= 3.14), drop GTK+2 code and --with-gtk build option
and require mate-panel >= 1.17
Diffstat (limited to 'sensors-applet/active-sensor.c')
-rw-r--r-- | sensors-applet/active-sensor.c | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/sensors-applet/active-sensor.c b/sensors-applet/active-sensor.c index f542055..91456da 100644 --- a/sensors-applet/active-sensor.c +++ b/sensors-applet/active-sensor.c @@ -348,33 +348,16 @@ void active_sensor_destroy(ActiveSensor *active_sensor) { g_free(active_sensor); } -#if GTK_CHECK_VERSION (3, 0, 0) gboolean graph_draw_cb(GtkWidget *graph, cairo_t *cr, gpointer data) { -#else -gboolean graph_expose_event_cb(GtkWidget *graph, - GdkEventExpose *event, - gpointer data) { -#endif ActiveSensor *as; as = (ActiveSensor *)data; -#if !GTK_CHECK_VERSION (3, 0, 0) - cairo_t *cr; - cr = gdk_cairo_create (event->window); - gdk_cairo_region (cr, event->region); - cairo_clip (cr); -#endif - active_sensor_update_graph(as, cr); /* propagate event onwards */ -#if !GTK_CHECK_VERSION (3, 0, 0) - cairo_destroy (cr); -#endif - return FALSE; } @@ -469,13 +452,8 @@ ActiveSensor *active_sensor_new(SensorsApplet *sensors_applet, (horizontal ? sensors_applet->size : graph_size)); g_signal_connect(G_OBJECT(active_sensor->graph), -#if GTK_CHECK_VERSION (3, 0, 0) "draw", G_CALLBACK(graph_draw_cb), -#else - "expose_event", - G_CALLBACK(graph_expose_event_cb), -#endif active_sensor); active_sensor->updated = FALSE; |