summaryrefslogtreecommitdiff
path: root/gtk/gtknotebook.c
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@src.gnome.org>2001-04-24 14:58:33 +0000
committerAlexander Larsson <alexl@src.gnome.org>2001-04-24 14:58:33 +0000
commitc668063747cc787e6ae49c2a451bbc1a8ec24278 (patch)
treee322ad3c7b983f824fedec8d6183a1f57f79dc0e /gtk/gtknotebook.c
parentb84d2f1234b6a6c1fd42cab2541b563f2ad66615 (diff)
downloadgdk-pixbuf-c668063747cc787e6ae49c2a451bbc1a8ec24278.tar.gz
i2001-04-24 Alexander Larsson <alexl@redhat.com>
* gtk/gtkclist.[ch]: * gtk/gtkctree.c: When there is a row highlighted for D'n'D it must alse be painted hightlighted on exposes. Otherwise exposes from the icon being dragged will mess up the hightlight. * gtk/gtkfontsel.c: Don't recenter selected font when exposing the font family clist. This means you can now actually scroll the font family list. * gtk/gtknotebook.c: Fix focus movement on scrolling tabs that are placed on the left and right.
Diffstat (limited to 'gtk/gtknotebook.c')
-rw-r--r--gtk/gtknotebook.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/gtk/gtknotebook.c b/gtk/gtknotebook.c
index 96b3bd596..b86fcdbb8 100644
--- a/gtk/gtknotebook.c
+++ b/gtk/gtknotebook.c
@@ -1005,12 +1005,19 @@ gtk_notebook_arrow_button_press (GtkNotebook *notebook,
if (event->button == 1)
{
+ GtkDirectionType dir;
if (!notebook->focus_tab ||
gtk_notebook_search_page (notebook, notebook->focus_tab,
arrow == GTK_ARROW_LEFT ? STEP_PREV : STEP_NEXT,
TRUE))
- gtk_container_focus (GTK_CONTAINER (notebook),
- arrow == GTK_ARROW_LEFT ? GTK_DIR_LEFT : GTK_DIR_RIGHT);
+ {
+ if (notebook->tab_pos == GTK_POS_LEFT ||
+ notebook->tab_pos == GTK_POS_RIGHT)
+ dir = (arrow == GTK_ARROW_LEFT) ? GTK_DIR_UP : GTK_DIR_DOWN;
+ else
+ dir = (arrow == GTK_ARROW_LEFT) ? GTK_DIR_LEFT : GTK_DIR_RIGHT;
+ gtk_container_focus (GTK_CONTAINER (notebook), dir);
+ }
if (!notebook->timer)
{