summaryrefslogtreecommitdiff
path: root/src/eom-preferences-dialog.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/eom-preferences-dialog.c')
-rw-r--r--src/eom-preferences-dialog.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/eom-preferences-dialog.c b/src/eom-preferences-dialog.c
index e13d0a4..8ac8b7d 100644
--- a/src/eom-preferences-dialog.c
+++ b/src/eom-preferences-dialog.c
@@ -46,6 +46,7 @@ struct _EomPreferencesDialogPrivate {
GSettings *ui_settings;
GSettings *fullscreen_settings;
+ GtkWidget *notebook;
GtkWidget *interpolate_check;
GtkWidget *extrapolate_check;
GtkWidget *autorotate_check;
@@ -153,6 +154,9 @@ eom_preferences_dialog_class_init (EomPreferencesDialogClass *klass)
"/org/mate/eom/ui/eom-preferences-dialog.ui");
gtk_widget_class_bind_template_child_private (widget_class,
EomPreferencesDialog,
+ notebook);
+ gtk_widget_class_bind_template_child_private (widget_class,
+ EomPreferencesDialog,
interpolate_check);
gtk_widget_class_bind_template_child_private (widget_class,
EomPreferencesDialog,
@@ -318,6 +322,13 @@ eom_preferences_dialog_init (EomPreferencesDialog *pref_dlg)
G_SETTINGS_BIND_DEFAULT);
gtk_widget_show_all (priv->plugin_manager);
+
+ /* Add tab scrolling support for GTK3 */
+ gtk_widget_add_events (priv->notebook, GDK_SCROLL_MASK);
+ g_signal_connect (priv->notebook,
+ "scroll-event",
+ G_CALLBACK (eom_util_dialog_page_scroll_event_cb),
+ NULL);
}
GtkWidget *eom_preferences_dialog_get_instance (GtkWindow *parent)