Fixed 'Ctrl-Enter' feature for sending.
authorMelvin Hadasht <melvin.hadasht@free.fr>
Fri, 11 Jan 2002 12:55:06 +0000 (12:55 +0000)
committerMelvin Hadasht <melvin.hadasht@free.fr>
Fri, 11 Jan 2002 12:55:06 +0000 (12:55 +0000)
Made summaryview refresh after sorting.

ChangeLog.claws
configure.in
src/compose.c
src/summaryview.c

index 72233c4..30d05ad 100644 (file)
@@ -1,3 +1,13 @@
+2002-01-11 [melvin]    0.6.6claws48
+
+       * src/compose.c
+               fix the 'Ctrl-Enter' feature for sending and test really
+               for 'Ctrl-Enter' (as Ctrl-Space is also used for activating
+               editables which was not documented in Gtk)
+
+       * src/summaryview.c
+               Made summaryview refresh after sorting and not before.
+
 2002-01-11 [christoph] 0.6.6claws47
 
        * src/compose.c
index df43253..529ec87 100644 (file)
@@ -8,7 +8,7 @@ MINOR_VERSION=6
 MICRO_VERSION=6
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=claws47
+EXTRA_VERSION=claws48
 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
 
 dnl
index 8b0e648..9cda5ed 100644 (file)
@@ -6428,10 +6428,10 @@ static void compose_ctl_enter_send_shortcut_cb(GtkWidget *w, Compose *compose)
        GtkAccelEntry  *accel;
        GtkWidget      *send_button;
        GSList *list;
-       GdkEvent *e= gtk_get_current_event();
+       GdkEventKey *e= (GdkEventKey *) gtk_get_current_event();
        
        if (e->type != GDK_KEY_PRESS || 
-           !( ((GdkEventKey *)e)->state & GDK_CONTROL_MASK) )
+           !( e->keyval == GDK_Return && e->state & GDK_CONTROL_MASK) )
                return;
 
        ifactory = gtk_item_factory_from_widget(compose->menubar);
index 2d556d7..435a551 100644 (file)
@@ -831,8 +831,6 @@ gboolean summary_show(SummaryView *summaryview, FolderItem *item,
 
        gtk_signal_handler_unblock_by_data(GTK_OBJECT(ctree), summaryview);
 
-       gtk_clist_thaw(GTK_CLIST(ctree));
-
        /* sort before */
        sort_mode = prefs_folder_item_get_sort_mode(item);
        sort_type = prefs_folder_item_get_sort_type(item);
@@ -884,6 +882,8 @@ gboolean summary_show(SummaryView *summaryview, FolderItem *item,
                        summary_select_node(summaryview, node, FALSE);
        }
 
+       gtk_clist_thaw(GTK_CLIST(ctree));
+
        summary_status_show(summaryview);
        summary_set_menu_sensitive(summaryview);
        main_window_set_toolbar_sensitive(summaryview->mainwin);