Diff of /cbrpager-maemo/branches/MAEMO_0_9_20/src/interface2.c [r11] .. [r12] Maximize Restore

  Switch to side-by-side view

--- a/cbrpager-maemo/branches/MAEMO_0_9_20/src/interface2.c
+++ b/cbrpager-maemo/branches/MAEMO_0_9_20/src/interface2.c
@@ -83,17 +83,15 @@
                     NULL);
   /* Work around a Maemo bug */
 #if USE_HILDON
-  event_mask = gtk_widget_get_events(main_canvas);
-  event_mask |= GDK_KEY_RELEASE_MASK;
+  event_mask = gtk_widget_get_events(main_canvas) | GDK_KEY_RELEASE_MASK;
   gtk_widget_set_events(main_canvas, event_mask);
   g_signal_connect ((gpointer) main_canvas, "key_release_event",
-		    G_CALLBACK (on_main_canvas_key_press_event),
+		    G_CALLBACK (on_main_canvas_key_release_event),
 		    NULL);
-#else
+#endif
   g_signal_connect ((gpointer) main_canvas, "key_press_event",
                     G_CALLBACK (on_main_canvas_key_press_event),
                     NULL);
-#endif
 
   /* Store pointers to all widgets, for use by lookup_widget(). */
   GLADE_HOOKUP_OBJECT_NO_REF (MainWindow, MainWindow, "MainWindow");