From eaae0a6b617a6bdb57694cc616cea7d2ede88364 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 18 Jul 2003 18:52:03 +0000 Subject: Add a new keybinding signal, move_viewport. (gtk_text_view_move_viewport): 2003-07-18 Matthias Clasen * gtk/gtktextview.c (gtk_text_view_class_init): Add a new keybinding signal, move_viewport. (gtk_text_view_move_viewport): New function which implements the move_viewport functionality. (gtk_text_view_move_cursor_internal): If the cursor is not visible, move the viewport. (#78669) * gtk/gtkenums.h (GtkScrollStep): New enumeration, used for move_viewport argument. * gtk/gtkstatusbar.c (gtk_statusbar_class_init): Add a has_resize_grip property. (#111779) * gtk/gtkwindow.h: * gtk/gtkwindow.c (gtk_window_set_default_icon): New method. (#95816) * gtk/gtkmessagedialog.h: * gtk/gtkmessagedialog.c (gtk_message_dialog_add_buttons): New method. (#65501, Sebastian Rittau) --- gtk/gtkenums.h | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'gtk/gtkenums.h') diff --git a/gtk/gtkenums.h b/gtk/gtkenums.h index 9a9fe3601..f8c0fab04 100644 --- a/gtk/gtkenums.h +++ b/gtk/gtkenums.h @@ -193,7 +193,8 @@ typedef enum GTK_CENTIMETERS } GtkMetricType; -typedef enum { +typedef enum +{ GTK_MOVEMENT_LOGICAL_POSITIONS, /* move by forw/back graphemes */ GTK_MOVEMENT_VISUAL_POSITIONS, /* move by left/right graphemes */ GTK_MOVEMENT_WORDS, /* move by forward/back words */ @@ -206,6 +207,16 @@ typedef enum { GTK_MOVEMENT_HORIZONTAL_PAGES /* move horizontally by pages */ } GtkMovementStep; +typedef enum +{ + GTK_SCROLL_STEPS, + GTK_SCROLL_PAGES, + GTK_SCROLL_ENDS, + GTK_SCROLL_HORIZONTAL_STEPS, + GTK_SCROLL_HORIZONTAL_PAGES, + GTK_SCROLL_HORIZONTAL_ENDS +} GtkScrollStep; + /* Orientation for toolbars, etc. */ typedef enum { -- cgit v1.2.1