Unverified Commit 69b7ebe9 authored by Victor Ananjevsky's avatar Victor Ananjevsky Committed by GitHub

Merge pull request #4 from step-/fix-gtk-critical-assertion-failed

Fix GTK2 warning message
parents 21f889ee 2afecd82
...@@ -417,16 +417,18 @@ get_label (gchar * str, guint border) ...@@ -417,16 +417,18 @@ get_label (gchar * str, guint border)
if (vals[1] && *vals[1]) if (vals[1] && *vals[1])
i = gtk_image_new_from_pixbuf (get_pixbuf (vals[1], YAD_SMALL_ICON)); i = gtk_image_new_from_pixbuf (get_pixbuf (vals[1], YAD_SMALL_ICON));
} }
#if !GTK_CHECK_VERSION(3,0,0)
gtk_misc_set_alignment (GTK_MISC (l), 0.0, 0.5);
#else
gtk_label_set_xalign (GTK_LABEL (l), 0.0);
#endif
if (i) if (i)
gtk_box_pack_start (GTK_BOX (t), i, FALSE, FALSE, 1); gtk_box_pack_start (GTK_BOX (t), i, FALSE, FALSE, 1);
if (l) if (l)
gtk_box_pack_start (GTK_BOX (t), l, FALSE, FALSE, 1); {
#if !GTK_CHECK_VERSION(3,0,0)
gtk_misc_set_alignment (GTK_MISC (l), 0.0, 0.5);
#else
gtk_label_set_xalign (GTK_LABEL (l), 0.0);
#endif
gtk_box_pack_start (GTK_BOX (t), l, FALSE, FALSE, 1);
}
/* !!! must check both 1 and 2 values for !NULL */ /* !!! must check both 1 and 2 values for !NULL */
if (vals[1] && vals[2] && *vals[2]) if (vals[1] && vals[2] && *vals[2])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment