GTK2 fixes
authorColin Leroy <colin@colino.net>
Sat, 17 Jan 2004 11:07:39 +0000 (11:07 +0000)
committerColin Leroy <colin@colino.net>
Sat, 17 Jan 2004 11:07:39 +0000 (11:07 +0000)
* src/addr_compl.c
Fix completion address too thin
* src/compose.c
Fix tab-to-subject behaviour
* src/summaryview.c
Implement key up & down in summaryview

ChangeLog-gtk2
src/addr_compl.c
src/compose.c
src/summaryview.c

index 09d9069c0c1c330d9e80fdb9e21f4af32c5a3d86..aa56f06a5d625a1c5a1142ebdc1b9f2dda513b04 100644 (file)
@@ -1,3 +1,11 @@
+2004-01-17 Colin Leroy <colin@colino.net>
+       * src/addr_compl.c
+               Fix completion address too thin
+       * src/compose.c
+               Fix tab-to-subject behaviour
+       * src/summaryview.c
+               Implement key up & down in summaryview
+
 2004-01-12 Thorsten Maerz <torte@netztorte.de>
 
        * sync 098claws
index 3ec33d182fe97e71a551e9431da061a79f6247cb..205aa90066f4d9e4f4cffb605a16cb6a317ee12a 100644 (file)
@@ -695,8 +695,7 @@ static void addrcompl_resize_window( CompletionWindow *cw ) {
        /* Get current geometry of window */
        gdk_window_get_geometry( cw->window->window, &x, &y, &width, &height, &depth );
 
-       gtk_widget_size_request( cw->clist, &r );
-       gtk_widget_set_size_request( cw->window, width, r.height );
+       gtk_widget_hide_all( cw->window );
        gtk_widget_show_all( cw->window );
        gtk_widget_size_request( cw->clist, &r );
 
@@ -704,7 +703,8 @@ static void addrcompl_resize_window( CompletionWindow *cw ) {
        if( ( y + r.height ) > gdk_screen_height() ) {
                gtk_window_set_policy( GTK_WINDOW( cw->window ), TRUE, FALSE, FALSE );
                gtk_widget_set_size_request( cw->window, width, gdk_screen_height() - y );
-       }
+       } else
+               gtk_widget_set_size_request(cw->window, width, r.height);
 }
 
 /**
index 65ad42a7ee3af492cbb1a5589efef0a2c632cf62..be05cfb11708827f0a285fc7c06317bd4b55360d 100644 (file)
@@ -7433,6 +7433,7 @@ gboolean compose_headerentry_key_press_event_cb(GtkWidget *entry,
                         */
                        gtk_signal_emit_stop_by_name(GTK_OBJECT(entry), "key-press-event"); 
                        gtk_widget_grab_focus(headerentry->compose->subject_entry);
+                       return TRUE;
                }
        }
        return FALSE;
index 28773c55dbd2c2b4684d3d4ab072aa6cda814b15..8c4eeec0ca44dc352e588d377797a3c78b7f78e3 100644 (file)
@@ -4523,6 +4523,19 @@ static gboolean summary_key_pressed(GtkWidget *widget, GdkEventKey *event,
        case GDK_Escape:
                gtk_widget_grab_focus(summaryview->folderview->ctree);
                return TRUE;
+       case GDK_Up:
+       case GDK_Down:
+               if ((node = summaryview->selected) != NULL) {
+                       GtkCTreeNode *next = NULL;
+                       next = (event->keyval == GDK_Down)
+                                       ? gtkut_ctree_node_next(ctree, node)
+                                       : gtkut_ctree_node_prev(ctree, node);
+                       if (next) {
+                               gtk_sctree_select(GTK_SCTREE(ctree), next);
+                               return TRUE;
+                       }
+               }
+               break;
        default:
                break;
        }