[Xfce4-commits] [apps/xfce4-notifyd] 01/01: Fix compilation on Gtk3.14
noreply at xfce.org
noreply at xfce.org
Wed Feb 15 21:13:12 CET 2017
This is an automated email from the git hooks/post-receive script.
ochosi pushed a commit to branch master
in repository apps/xfce4-notifyd.
commit e9a7e3dbbbf5f18ca94b20272a3f0d5827dc7877
Author: Matias De lellis <mati86dl at gmail.com>
Date: Wed Feb 15 16:49:07 2017 -0300
Fix compilation on Gtk3.14
Signed-off-by: Simon Steinbeiss <simon.steinbeiss at elfenbeinturm.at>
---
xfce4-notifyd-config/main.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/xfce4-notifyd-config/main.c b/xfce4-notifyd-config/main.c
index 4cc33f5..5ba2401 100644
--- a/xfce4-notifyd-config/main.c
+++ b/xfce4-notifyd-config/main.c
@@ -540,10 +540,18 @@ xfce4_notifyd_log_populate (GtkWidget *log_listbox)
markup = g_markup_printf_escaped (format, g_key_file_get_string (notify_log, group, "summary", NULL));
summary = gtk_label_new (NULL);
gtk_label_set_markup (GTK_LABEL (summary), markup);
+#if GTK_CHECK_VERSION (3, 16, 0)
gtk_label_set_xalign (GTK_LABEL (summary), 0);
+#else
+ gtk_widget_set_halign (summary, GTK_ALIGN_START);
+#endif
g_free (markup);
body = gtk_label_new (g_key_file_get_string (notify_log, group, "body", NULL));
+#if GTK_CHECK_VERSION (3, 16, 0)
gtk_label_set_xalign (GTK_LABEL (body), 0);
+#else
+ gtk_widget_set_halign (body, GTK_ALIGN_START);
+#endif
gtk_label_set_ellipsize (GTK_LABEL (body), PANGO_ELLIPSIZE_END);
app_icon = gtk_image_new_from_icon_name (g_key_file_get_string (notify_log, group, "app_icon", NULL),
GTK_ICON_SIZE_LARGE_TOOLBAR);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list