Commit c4594beb authored by Sebastian Ramacher's avatar Sebastian Ramacher

Remove smooth-scroll

parent f0a64222
......@@ -179,7 +179,6 @@ girara_config_load_default(girara_session_t* session)
int n_completion_items = 15;
bool show_scrollbars = false;
girara_mode_t normal_mode = session->modes.normal;
bool use_smooth_scroll = true;
/* other values */
session->global.autohide_inputbar = true;
......@@ -218,7 +217,6 @@ girara_config_load_default(girara_session_t* session)
girara_setting_add(session, "window-icon", "", STRING, FALSE, _("Window icon"), cb_window_icon, NULL);
girara_setting_add(session, "exec-command", "", STRING, FALSE, _("Command to execute in :exec"), NULL, NULL);
girara_setting_add(session, "guioptions", "s", STRING, FALSE, _("Show or hide certain GUI elements"), cb_guioptions, NULL);
girara_setting_add(session, "smooth-scroll", &use_smooth_scroll, BOOLEAN, TRUE, _("Enable smooth scrolling and zooming"), NULL, NULL);
/* shortcuts */
girara_shortcut_add(session, 0, GDK_KEY_Escape, NULL, girara_sc_abort, normal_mode, 0, NULL);
......
......@@ -388,11 +388,8 @@ girara_session_init(girara_session_t* session, const char* sessionname)
session->private_data->session_name = g_strdup(
(sessionname == NULL) ? "girara" : sessionname);
bool smooth_scroll = false;
girara_setting_get(session, "smooth-scroll", &smooth_scroll);
if (smooth_scroll == true) {
gtk_widget_add_events(session->gtk.viewport, GDK_SMOOTH_SCROLL_MASK);
}
/* enable smooth scroll events */
gtk_widget_add_events(session->gtk.viewport, GDK_SMOOTH_SCROLL_MASK);
/* load CSS style */
fill_template_with_values(session);
......
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