summaryrefslogtreecommitdiff
path: root/gtk/gtkscrolledwindow.h
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2002-02-16 01:34:26 +0000
committerOwen Taylor <otaylor@src.gnome.org>2002-02-16 01:34:26 +0000
commit59fc8ff8043a6712bcbfb421de9ef6a5d1604c9c (patch)
tree321f5447298f5ac7d7ef35c83122817908407eff /gtk/gtkscrolledwindow.h
parentc69c19c791ce12b9512542f94f7d3109d9331a5e (diff)
downloadgtk+-59fc8ff8043a6712bcbfb421de9ef6a5d1604c9c.tar.gz
Add key bindings on GtkScrolledWindow for arrow keys, PageUp/PageDown
Fri Feb 15 20:09:45 2002 Owen Taylor <otaylor@redhat.com> * gtk/gtkscrolledwindow.[ch] gtk/gtkmarshallers.list: Add key bindings on GtkScrolledWindow for arrow keys, PageUp/PageDown Home/End to scroll the window. Bind Control-[Shift]-Tab to focus out of the scrolled window entirely. Allow the scrolled window to be focused if no child can be focused. (#63480) * gtk/gtkwidget.c (gtk_widget_hide): Remove the REALIZED() check - if we have visible but not mapped widgets (inside a unshown notebook tab, for instance), we need to track their size. (#65087, reported by Damon Chaplin.) * gtk/gtkcolorsel.c (palette_change_color): Shut up a warning.
Diffstat (limited to 'gtk/gtkscrolledwindow.h')
-rw-r--r--gtk/gtkscrolledwindow.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/gtk/gtkscrolledwindow.h b/gtk/gtkscrolledwindow.h
index d8dedd9be9..e0d012a903 100644
--- a/gtk/gtkscrolledwindow.h
+++ b/gtk/gtkscrolledwindow.h
@@ -63,6 +63,7 @@ struct _GtkScrolledWindow
guint hscrollbar_visible : 1;
guint vscrollbar_visible : 1;
guint window_placement : 2;
+ guint focus_out : 1; /* Flag used by ::move-focus-out implementation */
guint16 shadow_type;
};
@@ -72,6 +73,20 @@ struct _GtkScrolledWindowClass
GtkBinClass parent_class;
gint scrollbar_spacing;
+
+ /* Action signals for keybindings. Do not connect to these signals
+ */
+
+ /* Unfortunately, GtkScrollType is deficient in that there is
+ * no horizontal/vertical variants for GTK_SCROLL_START/END,
+ * so we have to add an additional boolean flag.
+ */
+ void (*scroll_child) (GtkScrolledWindow *scrolled_window,
+ GtkScrollType scroll,
+ gboolean horizontal);
+
+ void (* move_focus_out) (GtkScrolledWindow *scrolled_window,
+ GtkDirectionType direction);
};