summaryrefslogtreecommitdiff
path: root/command/command.c
diff options
context:
space:
mode:
authorWolfgang Ulbrich <[email protected]>2015-12-17 15:48:18 +0100
committerWolfgang Ulbrich <[email protected]>2015-12-17 15:48:18 +0100
commit41ce41bb5ef1117206c4be3b4a57f514372f4106 (patch)
tree4049a6bb7fdf39009477b78563d71c7f7df78ccb /command/command.c
parent2fb2eec880db063eb6cdcf253528719e701ba7f0 (diff)
downloadmate-applets-41ce41bb5ef1117206c4be3b4a57f514372f4106.tar.bz2
mate-applets-41ce41bb5ef1117206c4be3b4a57f514372f4106.tar.xz
GTK3 command: don't use deprecated GTKMisc
Diffstat (limited to 'command/command.c')
-rw-r--r--command/command.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/command/command.c b/command/command.c
index afa62ece..14822cb6 100644
--- a/command/command.c
+++ b/command/command.c
@@ -143,7 +143,12 @@ 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);
+#else
gtk_misc_set_alignment (GTK_MISC (widget), 1.0, 0.5);
+#endif
gtk_table_attach (table, widget, 1, 2, 0, 1,
GTK_FILL, GTK_FILL,
0, 0);
@@ -154,7 +159,12 @@ 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);
+#else
gtk_misc_set_alignment (GTK_MISC (widget), 1.0, 0.5);
+#endif
gtk_table_attach (table, widget, 1, 2, 1, 2,
GTK_FILL, GTK_FILL,
0, 0);
@@ -165,7 +175,12 @@ 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);
+#else
gtk_misc_set_alignment (GTK_MISC (widget), 1.0, 0.5);
+#endif
gtk_table_attach (table, widget, 1, 2, 2, 3,
GTK_FILL, GTK_FILL,
0, 0);