* In details dialog, also allow to scroll with keypad arrows.
authorJose Dapena Paz <jdapena@igalia.com>
Mon, 20 Oct 2008 10:53:30 +0000 (10:53 +0000)
committerJose Dapena Paz <jdapena@igalia.com>
Mon, 20 Oct 2008 10:53:30 +0000 (10:53 +0000)
pmo-trunk-r6110

src/widgets/modest-details-dialog.c

index 1fadc4e..2bee7fd 100644 (file)
@@ -353,6 +353,7 @@ on_key_press_event (GtkWindow *window, GdkEventKey *event, gpointer userdata)
                vadj = gtk_scrolled_window_get_vadjustment (GTK_SCROLLED_WINDOW (focused));
                switch (event->keyval) {
                case GDK_Up:
+               case GDK_KP_Up:
                        if (vadj->value > 0.0) {
                                g_signal_emit_by_name (G_OBJECT (focused), "scroll-child", GTK_SCROLL_STEP_UP, FALSE, 
                                                       &return_value);
@@ -360,6 +361,7 @@ on_key_press_event (GtkWindow *window, GdkEventKey *event, gpointer userdata)
                        }
                        break;
                case GDK_Down:
+               case GDK_KP_Down:
                        if (vadj->value < vadj->upper - vadj->page_size) {
                                g_signal_emit_by_name (G_OBJECT (focused), "scroll-child", GTK_SCROLL_STEP_DOWN, FALSE, 
                                                       &return_value);