]> www.fi.muni.cz Git - evince.git/commitdiff
Correctly propagate key press event so that up/down keys work as expected
authorWouter Bolsterlee <wbolster@cvs.gnome.org>
Wed, 13 Dec 2006 21:47:12 +0000 (21:47 +0000)
committerWouter Bolsterlee <wbolster@src.gnome.org>
Wed, 13 Dec 2006 21:47:12 +0000 (21:47 +0000)
2006-12-13  Wouter Bolsterlee  <wbolster@cvs.gnome.org>

* shell/ev-view.c: (ev_view_key_press_event):

Correctly propagate key press event so that up/down keys
work as expected (correct behaviour was broken by
black/white screen key bindings for presentations).

ChangeLog
shell/ev-view.c

index 31f8fee974be63473044f1ca14dfcdf8bccf0af1..22cd788d99712053d609833cd462b170cc2e111e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2006-12-13  Wouter Bolsterlee  <wbolster@cvs.gnome.org>
+
+       * shell/ev-view.c: (ev_view_key_press_event):
+
+       Correctly propagate key press event so that up/down keys
+       work as expected (correct behaviour was broken by
+       black/white screen key bindings for presentations).
+
 2006-12-13  Carlos Garcia Campos  <carlosgc@gnome.org>
 
        * pdf/ev-poppler.cc: (pdf_document_find_get_n_results),
index 9a37136cee60860dc66c3e89f9dba4d086b380df..22e6270d1596b67e906b50858e021378c61fd5f1 100644 (file)
@@ -2185,7 +2185,8 @@ ev_view_key_press_event (GtkWidget   *widget,
 
        if (!view->presentation ||
            view->presentation_state == EV_PRESENTATION_END)
-               return FALSE;
+               return gtk_bindings_activate_event (GTK_OBJECT (widget), event);
+
 
        current = view->presentation_state;
 
@@ -2210,7 +2211,7 @@ ev_view_key_press_event (GtkWidget   *widget,
        }
 
        if (current == view->presentation_state)
-               return FALSE;
+               return gtk_bindings_activate_event (GTK_OBJECT (widget), event);
 
        switch (view->presentation_state) {
                case EV_PRESENTATION_NORMAL:
@@ -2223,7 +2224,7 @@ ev_view_key_press_event (GtkWidget   *widget,
                                                   &widget->style->white);
                        break;
                default:
-                       return FALSE;
+                       return gtk_bindings_activate_event (GTK_OBJECT (widget), event);
        }
 
        gtk_widget_queue_draw (widget);