[Commits] [SCM] claws branch, master, updated. 3.17.0-186-gd7e48fa
ticho at claws-mail.org
ticho at claws-mail.org
Thu Nov 29 18:33:55 CET 2018
The branch, master has been updated
via d7e48fad83335f102a0ff29af8c3e711d10763bd (commit)
from 082fde6208af540238cea27d93d9603ce54753a1 (commit)
Summary of changes:
src/sourcewindow.c | 14 --------------
1 file changed, 14 deletions(-)
- Log -----------------------------------------------------------------
commit d7e48fad83335f102a0ff29af8c3e711d10763bd
Author: Andrej Kacian <ticho at claws-mail.org>
Date: Thu Nov 29 18:30:21 2018 +0100
Sourcewindow doesn't need explicit handling of Ctrl+A, GtkTextView already interprets it as "select all".
diff --git a/src/sourcewindow.c b/src/sourcewindow.c
index 568dcb9..4e9a89f 100644
--- a/src/sourcewindow.c
+++ b/src/sourcewindow.c
@@ -203,23 +203,9 @@ static gint source_window_delete_cb(GtkWidget *widget, GdkEventAny *event,
static gboolean key_pressed(GtkWidget *widget, GdkEventKey *event,
SourceWindow *sourcewin)
{
- GtkTextBuffer *buffer;
- GtkTextIter start, end;
-
if (!event || !sourcewin) return FALSE;
- buffer = gtk_text_view_get_buffer(GTK_TEXT_VIEW(sourcewin->text));
- if (!buffer) return FALSE;
-
switch (event->keyval) {
- case GDK_KEY_A:
- case GDK_KEY_a:
- if ((event->state & GDK_CONTROL_MASK) != 0) {
- gtk_text_buffer_get_start_iter(buffer, &start);
- gtk_text_buffer_get_end_iter(buffer, &end);
- gtk_text_buffer_select_range(buffer, &start, &end);
- }
- break;
case GDK_KEY_W:
case GDK_KEY_w:
if ((event->state & GDK_CONTROL_MASK) != 0)
-----------------------------------------------------------------------
hooks/post-receive
--
Claws Mail
More information about the Commits
mailing list