summaryrefslogtreecommitdiff
path: root/timerapplet/timerapplet.c
diff options
context:
space:
mode:
authorWolfgang Ulbrich <[email protected]>2016-01-27 18:14:37 +0100
committerWolfgang Ulbrich <[email protected]>2016-01-27 18:14:37 +0100
commit37e590249dd9d191a2331040fb879830c9ceea8e (patch)
tree59fa7570d63841063eeb7682c201a5053f3d427b /timerapplet/timerapplet.c
parentacc20eb50af01fcb6ca2a024b65913cc32a1e670 (diff)
downloadmate-applets-37e590249dd9d191a2331040fb879830c9ceea8e.tar.bz2
mate-applets-37e590249dd9d191a2331040fb879830c9ceea8e.tar.xz
GTK3: fix previous GtkMisc deprecations fix commit
Diffstat (limited to 'timerapplet/timerapplet.c')
-rw-r--r--timerapplet/timerapplet.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/timerapplet/timerapplet.c b/timerapplet/timerapplet.c
index 381219a1..263aa8ba 100644
--- a/timerapplet/timerapplet.c
+++ b/timerapplet/timerapplet.c
@@ -303,9 +303,9 @@ timer_preferences_callback (GtkAction *action, TimerApplet *applet)
gtk_container_set_border_width (GTK_CONTAINER (dialog), 10);
widget = gtk_label_new (_("Name:"));
-#if GTK_CHECK_VERSION (3, 0, 0)
- gtk_widget_set_halign (widget, GTK_ALIGN_END);
- gtk_widget_set_valign (widget, GTK_ALIGN_CENTER);
+#if GTK_CHECK_VERSION (3, 16, 0)
+ gtk_label_set_xalign (GTK_LABEL (widget), 1.0);
+ gtk_label_set_yalign (GTK_LABEL (widget), 0.5);
#else
gtk_misc_set_alignment (GTK_MISC (widget), 1.0, 0.5);
#endif
@@ -320,9 +320,9 @@ timer_preferences_callback (GtkAction *action, TimerApplet *applet)
g_settings_bind (applet->settings, NAME_KEY, widget, "text", G_SETTINGS_BIND_DEFAULT);
widget = gtk_label_new (_("Hours:"));
-#if GTK_CHECK_VERSION (3, 0, 0)
- gtk_widget_set_halign (widget, GTK_ALIGN_END);
- gtk_widget_set_valign (widget, GTK_ALIGN_CENTER);
+#if GTK_CHECK_VERSION (3, 16, 0)
+ gtk_label_set_xalign (GTK_LABEL (widget), 1.0);
+ gtk_label_set_yalign (GTK_LABEL (widget), 0.5);
#else
gtk_misc_set_alignment (GTK_MISC (widget), 1.0, 0.5);
#endif
@@ -339,9 +339,9 @@ timer_preferences_callback (GtkAction *action, TimerApplet *applet)
g_signal_connect (widget, "value-changed", G_CALLBACK (timer_spin_button_value_changed), applet);
widget = gtk_label_new (_("Minutes:"));
-#if GTK_CHECK_VERSION (3, 0, 0)
- gtk_widget_set_halign (widget, GTK_ALIGN_END);
- gtk_widget_set_valign (widget, GTK_ALIGN_CENTER);
+#if GTK_CHECK_VERSION (3, 16, 0)
+ gtk_label_set_xalign (GTK_LABEL (widget), 1.0);
+ gtk_label_set_yalign (GTK_LABEL (widget), 0.5);
#else
gtk_misc_set_alignment (GTK_MISC (widget), 1.0, 0.5);
#endif
@@ -358,9 +358,9 @@ timer_preferences_callback (GtkAction *action, TimerApplet *applet)
g_signal_connect (widget, "value-changed", G_CALLBACK (timer_spin_button_value_changed), applet);
widget = gtk_label_new (_("Seconds:"));
-#if GTK_CHECK_VERSION (3, 0, 0)
- gtk_widget_set_halign (widget, GTK_ALIGN_END);
- gtk_widget_set_valign (widget, GTK_ALIGN_CENTER);
+#if GTK_CHECK_VERSION (3, 16, 0)
+ gtk_label_set_xalign (GTK_LABEL (widget), 1.0);
+ gtk_label_set_yalign (GTK_LABEL (widget), 0.5);
#else
gtk_misc_set_alignment (GTK_MISC (widget), 1.0, 0.5);
#endif