summaryrefslogtreecommitdiff
path: root/gtk/gtknotebook.h
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2002-02-08 01:10:25 +0000
committerOwen Taylor <otaylor@src.gnome.org>2002-02-08 01:10:25 +0000
commit23c6be552cb881a30ee6c52b8ad9ea0897d92618 (patch)
tree164520d5bb7a0da14661f89f1fa100165678b83b /gtk/gtknotebook.h
parentaa88182321e86a6ce8b0a4267f80302c838ea22e (diff)
downloadgtk+-23c6be552cb881a30ee6c52b8ad9ea0897d92618.tar.gz
Add ::move-focus-out signal to handle Control[-Shift]-Tab and
Thu Feb 7 19:52:00 2002 Owen Taylor <otaylor@redhat.com> * gtk/gtknotebook.[ch]: Add ::move-focus-out signal to handle Control[-Shift]-Tab and Control-arrow bindings and implement bindings as per #53612. * gtk/gtktextview.c (gtk_text_view_move_focus): Fix fetching the toplevel for plug-socket. * gtk/gtknotebook.c (gtk_notebook_class_init): Remove bindings for Return/Enter to select the page. * gtk/gtknotebook.c (gtk_notebook_change_current_page): Beep at ends. * gtk/gtknotebook.c (focus_tabs_move): Don't wrap around and beep at ends. * gtk/gtknotebook.c (gtk_notebook_focus): When focusing into the page with the arrow keys, focus the first widget, not the directionally closest widget.
Diffstat (limited to 'gtk/gtknotebook.h')
-rw-r--r--gtk/gtknotebook.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk/gtknotebook.h b/gtk/gtknotebook.h
index 65d6fd4362..8372a244d2 100644
--- a/gtk/gtknotebook.h
+++ b/gtk/gtknotebook.h
@@ -83,6 +83,7 @@ struct _GtkNotebook
guint need_timer : 1;
guint child_has_focus : 1;
guint have_visible_child : 1;
+ guint focus_out : 1; /* Flag used by ::move-focus-out implementation */
};
struct _GtkNotebookClass
@@ -100,6 +101,8 @@ struct _GtkNotebookClass
GtkNotebookTab type);
void (* change_current_page) (GtkNotebook *notebook,
gint offset);
+ void (* move_focus_out) (GtkNotebook *notebook,
+ GtkDirectionType direction);
};
/***********************************************************