diff options
Diffstat (limited to 'gtk/gtknotebook.c')
-rw-r--r-- | gtk/gtknotebook.c | 26 |
1 files changed, 5 insertions, 21 deletions
diff --git a/gtk/gtknotebook.c b/gtk/gtknotebook.c index c446a26748..4838ec7190 100644 --- a/gtk/gtknotebook.c +++ b/gtk/gtknotebook.c @@ -1318,18 +1318,9 @@ gtk_notebook_change_current_page (GtkNotebook *notebook, if (!current) { - gboolean wrap_around; - - g_object_get (gtk_widget_get_settings (GTK_WIDGET (notebook)), - "gtk-keynav-wrap-around", &wrap_around, - NULL); - - if (wrap_around) - current = gtk_notebook_search_page (notebook, NULL, - offset < 0 ? STEP_PREV : STEP_NEXT, - TRUE); - else - break; + current = gtk_notebook_search_page (notebook, NULL, + offset < 0 ? STEP_PREV : STEP_NEXT, + TRUE); } offset += offset < 0 ? 1 : -1; @@ -4171,15 +4162,8 @@ focus_tabs_move (GtkNotebook *notebook, search_direction, TRUE); if (!new_page) { - gboolean wrap_around; - - g_object_get (gtk_widget_get_settings (GTK_WIDGET (notebook)), - "gtk-keynav-wrap-around", &wrap_around, - NULL); - - if (wrap_around) - new_page = gtk_notebook_search_page (notebook, NULL, - search_direction, TRUE); + new_page = gtk_notebook_search_page (notebook, NULL, + search_direction, TRUE); } if (new_page) |