projects
/
modest
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* Changes on xfer_folder async mail operation to add two new
[modest]
/
src
/
widgets
/
modest-window.c
diff --git
a/src/widgets/modest-window.c
b/src/widgets/modest-window.c
index
43bf3ac
..
0b4f849
100644
(file)
--- a/
src/widgets/modest-window.c
+++ b/
src/widgets/modest-window.c
@@
-31,6
+31,8
@@
#include "modest-window-priv.h"
#include "modest-ui-actions.h"
#include "modest-tny-platform-factory.h"
#include "modest-window-priv.h"
#include "modest-ui-actions.h"
#include "modest-tny-platform-factory.h"
+#include "modest-runtime.h"
+#include "modest-window-mgr.h"
/* 'private'/'protected' functions */
static void modest_window_class_init (ModestWindowClass *klass);
/* 'private'/'protected' functions */
static void modest_window_class_init (ModestWindowClass *klass);
@@
-317,18
+319,23
@@
on_key_pressed (GtkWidget *self,
GdkEventKey *event,
gpointer user_data)
{
GdkEventKey *event,
gpointer user_data)
{
+ ModestWindowMgr *mgr = NULL;
+
+ mgr = modest_runtime_get_window_mgr ();
+
switch (event->keyval) {
switch (event->keyval) {
- case GDK_F6:
+ case GDK_F6:
modest_ui_actions_on_change_fullscreen (NULL, MODEST_WINDOW(self));
return TRUE;
modest_ui_actions_on_change_fullscreen (NULL, MODEST_WINDOW(self));
return TRUE;
- break;
case GDK_F7:
modest_ui_actions_on_zoom_plus (NULL, MODEST_WINDOW(self));
return TRUE;
case GDK_F7:
modest_ui_actions_on_zoom_plus (NULL, MODEST_WINDOW(self));
return TRUE;
- break;
case GDK_F8:
modest_ui_actions_on_zoom_minus (NULL, MODEST_WINDOW(self));
return TRUE;
case GDK_F8:
modest_ui_actions_on_zoom_minus (NULL, MODEST_WINDOW(self));
return TRUE;
+ case GDK_Escape:
+ if (modest_window_mgr_get_fullscreen_mode (mgr))
+ modest_ui_actions_on_change_fullscreen (NULL, MODEST_WINDOW(self));
break;
}
break;
}