summaryrefslogtreecommitdiff
path: root/command/command.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 /command/command.c
parentacc20eb50af01fcb6ca2a024b65913cc32a1e670 (diff)
downloadmate-applets-37e590249dd9d191a2331040fb879830c9ceea8e.tar.bz2
mate-applets-37e590249dd9d191a2331040fb879830c9ceea8e.tar.xz
GTK3: fix previous GtkMisc deprecations fix commit
Diffstat (limited to 'command/command.c')
-rw-r--r--command/command.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/command/command.c b/command/command.c
index 14822cb6..f81ce49e 100644
--- a/command/command.c
+++ b/command/command.c
@@ -143,9 +143,9 @@ command_settings_callback (GtkAction *action, CommandApplet *command_applet)
gtk_container_set_border_width (GTK_CONTAINER (dialog), 10);
widget = gtk_label_new (_("Command:"));
-#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
@@ -159,9 +159,9 @@ command_settings_callback (GtkAction *action, CommandApplet *command_applet)
0, 0);
widget = gtk_label_new (_("Interval (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
@@ -175,9 +175,9 @@ command_settings_callback (GtkAction *action, CommandApplet *command_applet)
0, 0);
widget = gtk_label_new (_("Maximum width (chars):"));
-#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