enable the use of Ctrl+A to select all text in the sourcewindow
authorPaul Mangan <paul@claws-mail.org>
Mon, 23 Jun 2003 08:59:30 +0000 (08:59 +0000)
committerPaul Mangan <paul@claws-mail.org>
Mon, 23 Jun 2003 08:59:30 +0000 (08:59 +0000)
ChangeLog.claws
configure.ac
src/sourcewindow.c

index 5cc5191..fbf799c 100644 (file)
@@ -1,3 +1,11 @@
+2003-06-23 [paul]      0.9.0claws56
+
+       * src/sourcewindow.c
+                enable the use of Ctrl+A to select all text in
+                the sourcewindow
+                Patch submitted by Ivan Francolin Martinez
+                <ivanfm@users.sourceforge.net>
+
 2003-06-22 [christoph] 0.9.0claws55
 
        * src/folder.[ch]
index d529c2e..885d280 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=9
 MICRO_VERSION=0
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=claws55
+EXTRA_VERSION=claws56
 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
 
 dnl set $target
index 87273c3..86a1ff7 100644 (file)
@@ -175,6 +175,17 @@ static void source_window_destroy_cb(GtkWidget *widget,
 static void key_pressed(GtkWidget *widget, GdkEventKey *event,
                        SourceWindow *sourcewin)
 {
-       if (event && event->keyval == GDK_Escape)
+
+       if (!event || !sourcewin) return;
+       
+       switch (event->keyval) {
+       case GDK_A:
+       case GDK_a:
+               if ((event->state & GDK_CONTROL_MASK) != 0)
+                       gtk_editable_select_region(GTK_EDITABLE(sourcewin->text), 0, -1);
+               break;
+       case GDK_Escape:
                gtk_widget_destroy(sourcewin->window);
+               break;
+       }
 }