Skip to content

Commit

Permalink
Remove smooth-scroll
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastinas committed Mar 3, 2019
1 parent f0a6422 commit c4594be
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
2 changes: 0 additions & 2 deletions girara/config.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
Expand Down
7 changes: 2 additions & 5 deletions girara/session.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit c4594be

Please sign in to comment.