Mercurial > geeqie
diff src/img-view.c @ 94:50dc5a14d37b
Thu Nov 2 17:51:31 2006 John Ellis <johne@verizon.net>
* collect.c, img-view.c: Make [Shift]+P printing shortcut work for
collections and view windows.
* layout_util.c: Fix shortcuts [Control]+N and [Shift]+P, broken
by the previous keypress handler code cleanup. Add [Control]+V to
view current image in a new image window.
author | gqview |
---|---|
date | Thu, 02 Nov 2006 23:27:03 +0000 |
parents | d063f97503b7 |
children | 0c2e1f0a001b |
line wrap: on
line diff
--- a/src/img-view.c Thu Nov 02 19:45:18 2006 +0000 +++ b/src/img-view.c Thu Nov 02 23:27:03 2006 +0000 @@ -1,6 +1,6 @@ /* * GQview - * (C) 2004 John Ellis + * (C) 2006 John Ellis * * Author: John Ellis * @@ -25,6 +25,7 @@ #include "menu.h" #include "pixbuf-renderer.h" #include "pixbuf_util.h" +#include "print.h" #include "slideshow.h" #include "utilops.h" #include "ui_bookmark.h" @@ -452,6 +453,18 @@ case 'G': case 'g': image_alter(imd, ALTER_DESATURATE); break; + case 'P': case 'p': + { + const gchar *path; + + view_fullscreen_toggle(vw, TRUE); + imd = view_window_active_image(vw); + path = image_get_path(imd); + print_window_new(path, + (path) ? g_list_append(NULL, g_strdup(path)) : NULL, + path_list_copy(vw->list), vw->window); + } + break; default: stop_signal = FALSE; break;