aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac10
-rw-r--r--src/Makefile.am1
-rw-r--r--src/greeter-list.vala4
3 files changed, 15 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 9176db7..2b20692 100644
--- a/configure.ac
+++ b/configure.ac
@@ -67,6 +67,16 @@ AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", Gettext package)
AC_SUBST(GETTEXT_PACKAGE)
dnl ###########################################################################
+dnl Check for GTK version - 3.20
+dnl ###########################################################################
+
+PKG_CHECK_MODULES(GTK_3_20_0, gtk+-3.0 >= 3.20.0 , gtk_check_pass=yes, gtk_check_pass=no)
+if test x$gtk_check_pass = xyes ; then
+ AM_VALAFLAGS="$AM_VALAFLAGS -D HAVE_GTK_3_20_0"
+ AC_SUBST([AM_VALAFLAGS])
+fi
+
+dnl ###########################################################################
dnl Files to generate
dnl ###########################################################################
diff --git a/src/Makefile.am b/src/Makefile.am
index 1fcefc7..ec75868 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -51,6 +51,7 @@ arctica_greeter_CFLAGS = \
logo_generator_CFLAGS = $(arctica_greeter_CFLAGS)
arctica_greeter_VALAFLAGS = \
+ $(AM_VALAFLAGS) \
--debug \
--pkg posix \
--pkg gtk+-3.0 \
diff --git a/src/greeter-list.vala b/src/greeter-list.vala
index 4734ab1..17d80a8 100644
--- a/src/greeter-list.vala
+++ b/src/greeter-list.vala
@@ -626,6 +626,10 @@ public abstract class GreeterList : FadableBox
focus_prompt ();
entry_displayed_done ();
mode = Mode.ENTRY;
+
+#if HAVE_GTK_3_20_0
+ queue_allocate ();
+#endif
}
protected void select_entry (PromptBox entry, double direction, bool do_scroll = true)