summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2020-07-13 10:25:35 +0200
committerraveit65 <[email protected]>2020-07-13 10:26:39 +0200
commit9cb538c6c309b1dbf7fa2356b39db7669982ec37 (patch)
tree71af6b32e838583742d495238c814853212aa66d /src
parentf27d0293d6ba096c8b9a2325bf482e1c9c281de7 (diff)
downloadeom-9cb538c6c309b1dbf7fa2356b39db7669982ec37.tar.bz2
eom-9cb538c6c309b1dbf7fa2356b39db7669982ec37.tar.xz
Revert "Add tab scrolling support for dialog windows"
This reverts commit f27d0293d6ba096c8b9a2325bf482e1c9c281de7.
Diffstat (limited to 'src')
-rw-r--r--src/eom-preferences-dialog.c2
-rw-r--r--src/eom-properties-dialog.c2
-rw-r--r--src/eom-util.c23
-rw-r--r--src/eom-util.h4
4 files changed, 7 insertions, 24 deletions
diff --git a/src/eom-preferences-dialog.c b/src/eom-preferences-dialog.c
index 7b613b4..8ac8b7d 100644
--- a/src/eom-preferences-dialog.c
+++ b/src/eom-preferences-dialog.c
@@ -327,7 +327,7 @@ eom_preferences_dialog_init (EomPreferencesDialog *pref_dlg)
gtk_widget_add_events (priv->notebook, GDK_SCROLL_MASK);
g_signal_connect (priv->notebook,
"scroll-event",
- G_CALLBACK (eom_notebook_page_scroll_event_cb),
+ G_CALLBACK (eom_util_dialog_page_scroll_event_cb),
NULL);
}
diff --git a/src/eom-properties-dialog.c b/src/eom-properties-dialog.c
index 3295b2e..5b2446f 100644
--- a/src/eom-properties-dialog.c
+++ b/src/eom-properties-dialog.c
@@ -794,7 +794,7 @@ eom_properties_dialog_init (EomPropertiesDialog *prop_dlg)
gtk_widget_add_events (priv->notebook, GDK_SCROLL_MASK);
g_signal_connect (priv->notebook,
"scroll-event",
- G_CALLBACK (eom_notebook_page_scroll_event_cb),
+ G_CALLBACK (eom_util_dialog_page_scroll_event_cb),
NULL);
}
diff --git a/src/eom-util.c b/src/eom-util.c
index 69692d5..9eccc73 100644
--- a/src/eom-util.c
+++ b/src/eom-util.c
@@ -429,8 +429,8 @@ eom_util_show_file_in_filemanager (GFile *file, GtkWindow *toplevel)
}
gboolean
-eom_notebook_page_scroll_event_cb (GtkWidget *widget,
- GdkEventScroll *event)
+eom_util_dialog_page_scroll_event_cb (GtkWidget *widget,
+ GdkEventScroll *event)
{
GtkNotebook *notebook = GTK_NOTEBOOK (widget);
@@ -466,24 +466,7 @@ eom_notebook_page_scroll_event_cb (GtkWidget *widget,
gtk_notebook_prev_page (notebook);
break;
case GDK_SCROLL_SMOOTH:
- switch (gtk_notebook_get_tab_pos (notebook))
- {
- case GTK_POS_LEFT:
- case GTK_POS_RIGHT:
- if (event->delta_y > 0)
- gtk_notebook_next_page (notebook);
- else if (event->delta_y < 0)
- gtk_notebook_prev_page (notebook);
- break;
- case GTK_POS_TOP:
- case GTK_POS_BOTTOM:
- if (event->delta_x > 0)
- gtk_notebook_next_page (notebook);
- else if (event->delta_x < 0)
- gtk_notebook_prev_page (notebook);
- break;
- }
- break;
+ break;
}
return TRUE;
diff --git a/src/eom-util.h b/src/eom-util.h
index b713721..a2b0ae8 100644
--- a/src/eom-util.h
+++ b/src/eom-util.h
@@ -65,8 +65,8 @@ G_GNUC_INTERNAL
void eom_util_show_file_in_filemanager (GFile *file,
GtkWindow *toplevel);
-gboolean eom_notebook_page_scroll_event_cb (GtkWidget *notebook,
- GdkEventScroll *event);
+gboolean eom_util_dialog_page_scroll_event_cb (GtkWidget *notebook,
+ GdkEventScroll *event);
G_END_DECLS