sync with sylpheed 0.4.99cvs1
authorPaul Mangan <paul@claws-mail.org>
Fri, 18 May 2001 11:44:54 +0000 (11:44 +0000)
committerPaul Mangan <paul@claws-mail.org>
Fri, 18 May 2001 11:44:54 +0000 (11:44 +0000)
ChangeLog
ChangeLog.claws
ChangeLog.jp
configure.in
src/folderview.c
src/gtkutils.c
src/gtkutils.h

index 3041164..c8f848a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2001-05-18
+
+       * src/gtkutils.[ch]: moved folderview_find_collapsed_parent() to
+         gtkut_ctree_find_collapsed_parent().
+       * src/folderview.c: folderview_select_node(): automatically expand
+         the parent folders when selected.
+       * configure.in: made the version number to 0.4.99 (0.5pre)
+       * src/main.c: main(): moved parse_cmd_opt() before gtk_init()
+         so that X is not necessary for --help and --version.
+         parse_cmd_opt(): changed g_get_prgname() to g_basename(argv[0]).
+
 2001-05-17
 
        * src/main.c: lock_socket_input_cb(): changed fd_read() to fd_gets().
index 788bcfd..4698661 100644 (file)
@@ -1,3 +1,9 @@
+2001-05-18 [paul]
+
+        0.4.99claws1
+
+        *sync with sylpheed 0.4.99cvs1
+
 2001-05-18 [hoa]
 
        * src/compose.[ch]
index 9c7cae0..aabd720 100644 (file)
@@ -1,3 +1,14 @@
+2001-05-18
+
+       * src/gtkutils.[ch]: folderview_find_collapsed_parent() ¤ò
+         gtkut_ctree_find_collapsed_parent() ¤Ë°ÜÆ°¡£
+       * src/folderview.c: folderview_select_node(): ÁªÂò¤µ¤ì¤¿¤È¤­¤Ë
+         ¿Æ¥Õ¥©¥ë¥À¤ò¼«Æ°Åª¤ËŸ³«¤¹¤ë¤è¤¦¤Ë¤·¤¿¡£
+       * configure.in: ¥Ð¡¼¥¸¥ç¥óÈÖ¹æ¤ò 0.4.99 (0.5pre) ¤Ë¤·¤¿¡£
+       * src/main.c: main(): --help ¤È --version ¤Ë X ¤¬ÉÔÍפˤʤë¤è¤¦¤Ë
+         parse_cmd_opt() ¤ò gtk_init() ¤ÎÁ°¤Ë°ÜÆ°¡£
+         parse_cmd_opt(): g_get_prgname() ¤ò g_basename(argv[0]) ¤ËÊѹ¹¡£
+
 2001-05-17
 
        * src/main.c: lock_socket_input_cb(): fd_read() ¤ò fd_gets() ¤Ë
index fd3803b..12bf7f0 100644 (file)
@@ -5,10 +5,10 @@ PACKAGE=sylpheed
 dnl version number
 MAJOR_VERSION=0
 MINOR_VERSION=4
-MICRO_VERSION=67
-INTERFACE_AGE=67
-BINARY_AGE=67
-EXTRA_VERSION=claws4
+MICRO_VERSION=99
+INTERFACE_AGE=99
+BINARY_AGE=99
+EXTRA_VERSION=claws1
 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
 
 dnl
index 2d1d94b..5fa74bb 100644 (file)
@@ -327,7 +327,7 @@ FolderView *folderview_create(void)
                                 GTK_SIGNAL_FUNC(folderview_tree_collapsed),
                                 folderview);
 
-    gtk_signal_connect(GTK_OBJECT(ctree), "resize_column",
+        gtk_signal_connect(GTK_OBJECT(ctree), "resize_column",
                           GTK_SIGNAL_FUNC(folderview_col_resized),
                           folderview);
 
@@ -438,6 +438,10 @@ static void folderview_select_node(FolderView *folderview, GtkCTreeNode *node)
                gtk_widget_grab_focus(folderview->summaryview->ctree);
        else
                gtk_widget_grab_focus(folderview->ctree);
+
+       while ((node = gtkut_ctree_find_collapsed_parent(ctree, node))
+              != NULL)
+               gtk_ctree_expand(ctree, node);
 }
 
 void folderview_unselect(FolderView *folderview)
@@ -691,18 +695,6 @@ static gboolean folderview_have_unread_children(FolderView *folderview,
        return FALSE;
 }
 
-static GtkCTreeNode *folderview_find_collapsed_parent(FolderView *folderview,
-                                                     GtkCTreeNode *node)
-{
-       if (!node) return NULL;
-
-       while ((node = GTK_CTREE_ROW(node)->parent) != NULL) {
-               if (!GTK_CTREE_ROW(node)->expanded)
-                       return node;
-       }
-
-       return NULL;
-}
 
 static void folderview_update_node(FolderView *folderview, GtkCTreeNode *node)
 {
@@ -852,7 +844,7 @@ static void folderview_update_node(FolderView *folderview, GtkCTreeNode *node)
        if (use_bold) {
                GtkCTreeNode *parent;
 
-               parent = folderview_find_collapsed_parent(folderview, node);
+               parent = gtkut_ctree_find_collapsed_parent(ctree, node);
                if (parent)
                        folderview_update_node(folderview, parent);
        }
index 67e15ea..d4b42b9 100644 (file)
@@ -188,6 +188,19 @@ GtkCTreeNode *gtkut_ctree_node_next(GtkCTree *ctree, GtkCTreeNode *node)
        return NULL;
 }
 
+GtkCTreeNode *gtkut_ctree_find_collapsed_parent(GtkCTree *ctree,
+                                               GtkCTreeNode *node)
+{
+       if (!node) return NULL;
+
+       while ((node = GTK_CTREE_ROW(node)->parent) != NULL) {
+               if (!GTK_CTREE_ROW(node)->expanded)
+                       return node;
+       }
+
+       return NULL;
+}
+
 void gtkut_ctree_set_focus_row(GtkCTree *ctree, GtkCTreeNode *node)
 {
        gtkut_clist_set_focus_row(GTK_CLIST(ctree),
index 27f5a92..9022cf8 100644 (file)
@@ -77,6 +77,9 @@ gint gtkut_ctree_get_nth_from_node    (GtkCTree       *ctree,
                                         GtkCTreeNode   *node);
 GtkCTreeNode *gtkut_ctree_node_next    (GtkCTree       *ctree,
                                         GtkCTreeNode   *node);
+GtkCTreeNode *gtkut_ctree_find_collapsed_parent
+                                       (GtkCTree       *ctree,
+                                        GtkCTreeNode   *node);
 void gtkut_ctree_set_focus_row         (GtkCTree       *ctree,
                                         GtkCTreeNode   *node);
 void gtkut_clist_set_focus_row         (GtkCList       *clist,