summaryrefslogtreecommitdiff
path: root/sensors-applet/sensors-applet.c
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2018-01-31 11:17:25 +0100
committerraveit65 <[email protected]>2018-01-31 13:12:39 +0100
commitd269182caecf368c957a00310e245d176e809e83 (patch)
treef19f87d013eec81107644b61e205f1d1af217366 /sensors-applet/sensors-applet.c
parentbcd9924b5e561b2af08ec91e5ecbb9ecaf26c13c (diff)
downloadmate-sensors-applet-d269182caecf368c957a00310e245d176e809e83.tar.bz2
mate-sensors-applet-d269182caecf368c957a00310e245d176e809e83.tar.xz
require GTK+ 3.22 and GLib 2.50
Diffstat (limited to 'sensors-applet/sensors-applet.c')
-rw-r--r--sensors-applet/sensors-applet.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/sensors-applet/sensors-applet.c b/sensors-applet/sensors-applet.c
index 3ddd48d..583c42c 100644
--- a/sensors-applet/sensors-applet.c
+++ b/sensors-applet/sensors-applet.c
@@ -75,11 +75,7 @@ static void help_cb(GtkAction *action, gpointer data) {
GError *error = NULL;
-#if GTK_CHECK_VERSION (3, 22, 0)
gtk_show_uri_on_window(NULL, "help:mate-sensors-applet",
-#else
- gtk_show_uri(NULL, "help:mate-sensors-applet",
-#endif
gtk_get_current_event_time(),
&error);
@@ -704,12 +700,8 @@ static void sensors_applet_pack_display(SensorsApplet *sensors_applet) {
gtk_widget_set_valign (((ActiveSensor *)(current_sensor->data))->icon, GTK_ALIGN_CENTER);
}
if (((ActiveSensor *)(current_sensor->data))->label) {
-#if GTK_CHECK_VERSION (3, 16, 0)
gtk_label_set_xalign (GTK_LABEL(((ActiveSensor *)(current_sensor->data))->label), 0);
gtk_label_set_yalign (GTK_LABEL(((ActiveSensor *)(current_sensor->data))->label), 0.5);
-#else
- gtk_misc_set_alignment(GTK_MISC(((ActiveSensor *)(current_sensor->data))->label), 0.0, 0.5);
-#endif
}
if (((ActiveSensor *)(current_sensor->data))->value) {
gtk_widget_set_halign (((ActiveSensor *)(current_sensor->data))->value, GTK_ALIGN_START);
@@ -731,12 +723,8 @@ static void sensors_applet_pack_display(SensorsApplet *sensors_applet) {
gtk_widget_set_valign (((ActiveSensor *)(current_sensor->data))->icon, GTK_ALIGN_CENTER);
}
if (((ActiveSensor *)(current_sensor->data))->label) {
-#if GTK_CHECK_VERSION (3, 16, 0)
gtk_label_set_xalign (GTK_LABEL(((ActiveSensor *)(current_sensor->data))->label), 0.5);
gtk_label_set_yalign (GTK_LABEL(((ActiveSensor *)(current_sensor->data))->label), 0.5);
-#else
- gtk_misc_set_alignment(GTK_MISC(((ActiveSensor *)(current_sensor->data))->label), 0.5, 0.5);
-#endif
}
if (((ActiveSensor *)(current_sensor->data))->value) {
gtk_widget_set_halign (((ActiveSensor *)(current_sensor->data))->value, GTK_ALIGN_CENTER);