2008-12-07 [paul] 3.6.1cvs62
authorPaul Mangan <paul@claws-mail.org>
Sun, 7 Dec 2008 05:02:04 +0000 (05:02 +0000)
committerPaul Mangan <paul@claws-mail.org>
Sun, 7 Dec 2008 05:02:04 +0000 (05:02 +0000)
* src/prefs_account.c
* src/gtk/pluginwindow.c
* src/gtk/prefswindow.c
* src/gtk/prefswindow.h
auto-select first page

ChangeLog
PATCHSETS
configure.ac
src/gtk/pluginwindow.c
src/gtk/prefswindow.c
src/gtk/prefswindow.h
src/prefs_account.c

index 4c879b8..d72979c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2008-12-07 [paul]      3.6.1cvs62
+
+       * src/prefs_account.c
+       * src/gtk/pluginwindow.c
+       * src/gtk/prefswindow.c
+       * src/gtk/prefswindow.h
+               auto-select first page
+
 2008-12-05 [colin]     3.6.1cvs61
 
        * src/codeconv.c
index 4605157..fec44ba 100644 (file)
--- a/PATCHSETS
+++ b/PATCHSETS
 ( cvs diff -u -r 1.16.2.62 -r 1.16.2.63 src/msgcache.c;  cvs diff -u -r 1.395.2.401 -r 1.395.2.402 src/summaryview.c;  cvs diff -u -r 1.1.4.51 -r 1.1.4.52 src/gtk/gtksctree.c;  ) > 3.6.1cvs59.patchset
 ( cvs diff -u -r 1.103.2.118 -r 1.103.2.119 src/prefs_common.h;  ) > 3.6.1cvs60.patchset
 ( cvs diff -u -r 1.65.2.63 -r 1.65.2.64 src/codeconv.c;  cvs diff -u -r 1.49.2.122 -r 1.49.2.123 src/procmime.c;  ) > 3.6.1cvs61.patchset
+( cvs diff -u -r 1.105.2.148 -r 1.105.2.149 src/prefs_account.c;  cvs diff -u -r 1.5.2.54 -r 1.5.2.55 src/gtk/pluginwindow.c;  cvs diff -u -r 1.12.2.49 -r 1.12.2.50 src/gtk/prefswindow.c;  cvs diff -u -r 1.7.2.13 -r 1.7.2.14 src/gtk/prefswindow.h;  ) > 3.6.1cvs62.patchset
index 76c2864..a218d05 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=6
 MICRO_VERSION=1
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=61
+EXTRA_VERSION=62
 EXTRA_RELEASE=
 EXTRA_GTK2_VERSION=
 
index 70a6a44..8b30d5f 100644 (file)
@@ -136,11 +136,16 @@ static void set_plugin_list(PluginWindow *pluginwindow)
                                   -1);
        }
 
-       if (pluginwindow->selected_plugin == NULL) { 
-               selection = gtk_tree_view_get_selection(GTK_TREE_VIEW
-                               (pluginwindow->plugin_list_view));
-               gtk_tree_selection_unselect_all(selection);                             
-       }               
+       selection = gtk_tree_view_get_selection(GTK_TREE_VIEW(pluginwindow->plugin_list_view));
+       if (gtk_tree_model_get_iter_first(GTK_TREE_MODEL(store), &iter)) {
+               if (gtk_tree_model_iter_has_child(GTK_TREE_MODEL(store), &iter)) {
+                       GtkTreeIter parent = iter;
+                       if (!gtk_tree_model_iter_children(GTK_TREE_MODEL(store), &iter, &parent))
+                               iter = parent;
+               }
+               gtk_tree_selection_select_iter(selection, &iter);
+       }
+               
        g_slist_free(plugins);
 }
 
index 292daed..e272d98 100644 (file)
@@ -309,8 +309,7 @@ static void prefswindow_build_all_pages(PrefsWindow *prefswindow, GSList *prefs_
 
 static void prefswindow_build_tree(GtkWidget *tree_view, GSList *prefs_pages,
                                                                        PrefsWindow *prefswindow,
-                                                                       gboolean preload_pages,
-                                                                       gboolean activate_child)
+                                                                       gboolean preload_pages)
 {
        GtkTreeStore *store = GTK_TREE_STORE(gtk_tree_view_get_model
                        (GTK_TREE_VIEW(tree_view)));
@@ -401,7 +400,7 @@ static void prefswindow_build_tree(GtkWidget *tree_view, GSList *prefs_pages,
 #ifndef GENERIC_UMPC
        selection = gtk_tree_view_get_selection(GTK_TREE_VIEW(tree_view));
        if (gtk_tree_model_get_iter_first(GTK_TREE_MODEL(store), &iter)) {
-               if (activate_child && gtk_tree_model_iter_has_child(GTK_TREE_MODEL(store), &iter)) {
+               if (gtk_tree_model_iter_has_child(GTK_TREE_MODEL(store), &iter)) {
                        GtkTreeIter parent = iter;
                        if (!gtk_tree_model_iter_children(GTK_TREE_MODEL(store), &iter, &parent))
                                iter = parent;
@@ -414,7 +413,7 @@ static void prefswindow_build_tree(GtkWidget *tree_view, GSList *prefs_pages,
 void prefswindow_open_full(const gchar *title, GSList *prefs_pages,
                                                         gpointer data, GDestroyNotify func,
                                                         gint *save_width, gint *save_height,
-                                                        gboolean preload_pages, gboolean activate_child,
+                                                        gboolean preload_pages,
                                                         PrefsOpenCallbackFunc open_cb,
                                                         PrefsCloseCallbackFunc close_cb)
 {
@@ -510,7 +509,7 @@ void prefswindow_open_full(const gchar *title, GSList *prefs_pages,
        gtk_container_add(GTK_CONTAINER(prefswindow->notebook), prefswindow->empty_page);
 
        prefswindow_build_tree(prefswindow->tree_view, prefs_pages, prefswindow,
-                                                       preload_pages, activate_child);
+                                                       preload_pages);
 
        if (open_cb)
                open_cb(GTK_WINDOW(prefswindow->window));
@@ -609,7 +608,7 @@ void prefswindow_open(const gchar *title, GSList *prefs_pages, gpointer data,
                                         PrefsCloseCallbackFunc close_cb)
 {
        prefswindow_open_full(title, prefs_pages, data, NULL, save_width, save_height,
-                                                 FALSE, FALSE, open_cb, close_cb);
+                                                 FALSE, open_cb, close_cb);
 }
 
 /*!
index dfda16b..ae5f1a3 100644 (file)
@@ -50,7 +50,7 @@ void prefswindow_open_full            (const gchar *title,
                                         gpointer data,
                                         GDestroyNotify func,
                                         gint *save_width, gint *save_height,
-                                        gboolean preload_pages, gboolean activate_child,
+                                        gboolean preload_pages,
                                         PrefsOpenCallbackFunc open_cb,
                                         PrefsCloseCallbackFunc close_cb);
 
index 73efe83..d3f750f 100644 (file)
@@ -3587,8 +3587,7 @@ PrefsAccount *prefs_account_open(PrefsAccount *ac_prefs, gboolean *dirty)
 
        prefswindow_open_full(title, prefs_pages, ac_prefs, destroy_dialog,
                        &prefs_common.editaccountwin_width, &prefs_common.editaccountwin_height,
-                       TRUE, TRUE,
-                       NULL, NULL);
+                       TRUE, NULL, NULL);
        g_free(title);
        gtk_main();