From 98923940ddeb23092edb9ee9c50a04181e7e47c8 Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Sun, 22 May 2016 16:01:21 +0200 Subject: [PATCH] Avoid a warning with Gtk+ 3 --- src/compare.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/compare.c b/src/compare.c index d46fca7..b7e72dc 100644 --- a/src/compare.c +++ b/src/compare.c @@ -98,7 +98,11 @@ static int _compare(char const * string1, char const * string2) _compare_on_changed), &compare); gtk_box_pack_start(GTK_BOX(vbox), compare.entry2, FALSE, TRUE, 0); compare.label = gtk_label_new(NULL); +#if GTK_CHECK_VERSION(3, 0, 0) + g_object_set(compare.label, "halign", GTK_ALIGN_START, NULL); +#else gtk_misc_set_alignment(GTK_MISC(compare.label), 0.0, 0.5); +#endif #if GTK_CHECK_VERSION(2, 18, 0) compare.infobar = gtk_info_bar_new(); widget = gtk_info_bar_get_content_area(GTK_INFO_BAR(compare.infobar));