summaryrefslogtreecommitdiff
path: root/applets/fish/fish.c
diff options
context:
space:
mode:
Diffstat (limited to 'applets/fish/fish.c')
-rw-r--r--applets/fish/fish.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/applets/fish/fish.c b/applets/fish/fish.c
index 4562e65e..8986e9e1 100644
--- a/applets/fish/fish.c
+++ b/applets/fish/fish.c
@@ -892,8 +892,13 @@ static void display_fortune_dialog(FishApplet* fish)
gtk_label_set_ellipsize (GTK_LABEL (fish->fortune_label),
PANGO_ELLIPSIZE_MIDDLE);
fish->fortune_cmd_label = gtk_label_new ("");
+#if GTK_CHECK_VERSION (3, 16, 0)
+ gtk_label_set_xalign (GTK_LABEL (fish->fortune_cmd_label), 0.0);
+ gtk_label_set_yalign (GTK_LABEL (fish->fortune_cmd_label), 0.5);
+#else
gtk_misc_set_alignment (GTK_MISC (fish->fortune_cmd_label),
0, 0.5);
+#endif
vbox = gtk_dialog_get_content_area (GTK_DIALOG (fish->fortune_dialog));
gtk_box_pack_start (GTK_BOX (vbox),