From: buliabyak Date: Wed, 10 Jan 2007 13:10:03 +0000 (+0000) Subject: fix 1630485, add some keys X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=cad34e731c7d4305ee7cc3dd2117191f9cc10556;p=inkscape.git fix 1630485, add some keys --- diff --git a/src/inkview.cpp b/src/inkview.cpp index 95af5b734..d6ea436a1 100644 --- a/src/inkview.cpp +++ b/src/inkview.cpp @@ -52,6 +52,8 @@ #include #include +#include + #include "gc-core.h" #include "preferences.h" @@ -122,9 +124,11 @@ sp_svgview_main_key_press (GtkWidget *widget, GdkEventKey *event, struct SPSlide { switch (event->keyval) { case GDK_Up: + case GDK_Home: sp_svgview_goto_first(ss); break; case GDK_Down: + case GDK_End: sp_svgview_goto_last(ss); break; case GDK_F11: @@ -152,6 +156,7 @@ sp_svgview_main_key_press (GtkWidget *widget, GdkEventKey *event, struct SPSlide case GDK_KP_Page_Up: case GDK_Page_Up: case GDK_Left: + case GDK_BackSpace: sp_svgview_show_prev (ss); break; case GDK_Escape: @@ -173,6 +178,8 @@ main (int argc, const char **argv) usage(); } + Gtk::Main main_instance (&argc, const_cast(&argv)); + struct SPSlideShow ss; int option,