Commit c6c1e8a7 authored by Sebastian Ramacher's avatar Sebastian Ramacher

Require GTK+ 3.4

Signed-off-by: Sebastian Ramacher's avatarSebastian Ramacher <sebastian+dev@ramacher.at>
parent bf424c7a
......@@ -10,7 +10,7 @@ enhance the user interface that is used by zathura and jumanji.
Requirements
------------
glib (>= 2.28)
gtk3 (>= 3.2)
gtk3 (>= 3.4)
intltool
libnotify (optional, for notification support)
......
......@@ -46,7 +46,7 @@ BINDIR ?= bin
# GTK+
GTK_VERSION_CHECK ?= 1
GTK_MIN_VERSION = 3.2
GTK_MIN_VERSION = 3.4
GTK_PKG_CONFIG_NAME = gtk+-3.0
# glib
GLIB_VERSION_CHECK ?= 1
......
......@@ -268,9 +268,7 @@ girara_session_create()
gtk_box_set_homogeneous(session->gtk.inputbar_box, TRUE);
session->gtk.view = gtk_scrolled_window_new(NULL, NULL);
session->gtk.viewport = gtk_viewport_new(NULL, NULL);
#if GTK_CHECK_VERSION(3, 4, 0)
gtk_widget_add_events(session->gtk.viewport, GDK_SCROLL_MASK);
#endif
session->gtk.statusbar = gtk_event_box_new();
session->gtk.notification_area = gtk_event_box_new();
session->gtk.notification_text = gtk_label_new(NULL);
......@@ -289,13 +287,11 @@ girara_session_init(girara_session_t* session, const char* sessionname)
return false;
}
#if GTK_CHECK_VERSION(3, 4, 0)
bool smooth_scroll = false;
girara_setting_get(session, "smooth-scroll", &smooth_scroll);
if (smooth_scroll) {
gtk_widget_add_events(session->gtk.viewport, GDK_SMOOTH_SCROLL_MASK);
}
#endif
session->private_data->session_name = g_strdup(
(sessionname == NULL) ? "girara" : sessionname);
......
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