* src/compose.c
authorAlfons Hoogervorst <alfons@proteus.demon.nl>
Wed, 4 Feb 2004 13:16:05 +0000 (13:16 +0000)
committerAlfons Hoogervorst <alfons@proteus.demon.nl>
Wed, 4 Feb 2004 13:16:05 +0000 (13:16 +0000)
always grab focus when one of the header entries is clicked
(should fix bug #430, "no focus on pasted addresses 3 & higher")

ChangeLog.claws
configure.ac
src/compose.c

index 5c0f65e..489b807 100644 (file)
@@ -1,3 +1,9 @@
+2004-04-02 [alfons]    0.9.8claws61
+
+       * src/compose.c
+               always grab focus when one of the header entries is clicked 
+               (should fix bug #430, "no focus on pasted addresses 3 & higher")
+
 2004-02-02 [paul]
 
        * ac/missing/gdk-pixbuf.m4
index 42f6209..71e86b7 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=9
 MICRO_VERSION=8
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=60
+EXTRA_VERSION=61
 if test $EXTRA_VERSION -eq 0; then
     VERSION=${MAJOR_VERSION}.${MINOR_VERSION}.${MICRO_VERSION}claws
 else
index 9e8495f..0f1a081 100644 (file)
@@ -481,6 +481,9 @@ void compose_headerentry_changed_cb    (GtkWidget          *entry,
 void compose_headerentry_key_press_event_cb(GtkWidget         *entry,
                                            GdkEventKey        *event,
                                            ComposeHeaderEntry *headerentry);
+static gboolean compose_headerentry_button_pressed (GtkWidget *entry, 
+                                                   GdkEventButton *event,
+                                                   gpointer data);
 
 static void compose_show_first_last_header (Compose *compose, gboolean show_first);
 
@@ -4583,6 +4586,9 @@ static void compose_create_header_entry(Compose *compose)
         gtk_signal_connect(GTK_OBJECT(entry), "key-press-event", GTK_SIGNAL_FUNC(compose_headerentry_key_press_event_cb), headerentry);
        gtk_signal_connect(GTK_OBJECT(entry), "changed", GTK_SIGNAL_FUNC(compose_headerentry_changed_cb), headerentry);
        gtk_signal_connect(GTK_OBJECT(entry), "activate", GTK_SIGNAL_FUNC(text_activated), compose);
+       gtk_signal_connect(GTK_OBJECT(entry), "button-press-event", 
+                          GTK_SIGNAL_FUNC(compose_headerentry_button_pressed),
+                          NULL);
 
        address_completion_register_entry(GTK_ENTRY(entry));
 
@@ -7118,6 +7124,13 @@ void compose_headerentry_changed_cb(GtkWidget *entry,
        }
 }
 
+static gboolean compose_headerentry_button_pressed
+       (GtkWidget *entry, GdkEventButton *event, gpointer data)
+{
+       gtk_widget_grab_focus(entry);
+       return TRUE;
+}
+
 static void compose_show_first_last_header(Compose *compose, gboolean show_first)
 {
        GtkAdjustment *vadj;