[Commits] mimeview.c 1.83.2.175 1.83.2.176
pawel at claws-mail.org
pawel at claws-mail.org
Sun Oct 30 17:59:15 CET 2011
Update of /home/claws-mail/claws/src
In directory claws-mail:/tmp/cvs-serv1617/src
Modified Files:
Tag: gtk2
mimeview.c
Log Message:
2011-10-30 [pawel] 3.7.10cvs58
* src/mimeview.c
Remove key-press-event blocking, it only
emits GLib-GObject warnings
Index: mimeview.c
===================================================================
RCS file: /home/claws-mail/claws/src/mimeview.c,v
retrieving revision 1.83.2.175
retrieving revision 1.83.2.176
diff -u -d -r1.83.2.175 -r1.83.2.176
--- mimeview.c 25 Oct 2011 05:41:32 -0000 1.83.2.175
+++ mimeview.c 30 Oct 2011 16:59:12 -0000 1.83.2.176
@@ -1429,15 +1429,10 @@
#define BREAK_ON_MODIFIER_KEY() \
if ((event->state & (GDK_MOD1_MASK|GDK_CONTROL_MASK)) != 0) break
-#define KEY_PRESS_EVENT_STOP() \
- g_signal_stop_emission_by_name(G_OBJECT(ctree), \
- "key_press_event");
-
static gint mimeview_key_pressed(GtkWidget *widget, GdkEventKey *event,
MimeView *mimeview)
{
SummaryView *summaryview;
- GtkCMCTree *ctree = GTK_CMCTREE(widget);
if (!event) return FALSE;
if (!mimeview->opened) return FALSE;
@@ -1484,34 +1479,28 @@
case GDK_KEY_y:
BREAK_ON_MODIFIER_KEY();
- KEY_PRESS_EVENT_STOP();
mimeview_save_as(mimeview);
return TRUE;
case GDK_KEY_t:
BREAK_ON_MODIFIER_KEY();
- KEY_PRESS_EVENT_STOP();
mimeview_display_as_text(mimeview);
return TRUE;
case GDK_KEY_l:
BREAK_ON_MODIFIER_KEY();
- KEY_PRESS_EVENT_STOP();
mimeview_launch(mimeview, NULL);
return TRUE;
case GDK_KEY_o:
BREAK_ON_MODIFIER_KEY();
- KEY_PRESS_EVENT_STOP();
#ifndef G_OS_WIN32
mimeview_open_with(mimeview);
#endif
return TRUE;
case GDK_KEY_c:
BREAK_ON_MODIFIER_KEY();
- KEY_PRESS_EVENT_STOP();
mimeview_check_signature(mimeview);
return TRUE;
case GDK_KEY_a:
BREAK_ON_MODIFIER_KEY();
- KEY_PRESS_EVENT_STOP();
mimeview_select_next_part(mimeview);
return TRUE;
default:
@@ -1520,8 +1509,7 @@
if (!mimeview->messageview->mainwin) return FALSE;
- summary_pass_key_press_event(summaryview, event);
- return TRUE;
+ return summary_pass_key_press_event(summaryview, event);
}
static void mimeview_drag_data_get(GtkWidget *widget,
More information about the Commits
mailing list