summaryrefslogtreecommitdiff
path: root/applets/fish/fish.c
diff options
context:
space:
mode:
authorRoy Zhang <[email protected]>2016-01-04 14:05:03 +0800
committerWolfgang Ulbrich <[email protected]>2016-01-23 22:33:21 +0100
commit067dbe7b68fa625ea87ef6e259539fff2baaeaf7 (patch)
tree0dd7b2c62af9ee70409cc1c36111635274656e5c /applets/fish/fish.c
parent0f7314ea3db7411ae7827ec9bb89a2b485227f1a (diff)
downloadmate-panel-067dbe7b68fa625ea87ef6e259539fff2baaeaf7.tar.bz2
mate-panel-067dbe7b68fa625ea87ef6e259539fff2baaeaf7.tar.xz
Gtk3: Don't use deprecated gtk_misc_set_alignment
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),