Mercurial > pidgin.yaz
changeset 3567:ec86e76d0427
[gaim-migrate @ 3663]
Unfold plugins tree when loading your first plugin.
committer: Tailor Script <tailor@pidgin.im>
author | Sean Egan <seanegan@gmail.com> |
---|---|
date | Sun, 29 Sep 2002 01:36:11 +0000 |
parents | 1496be1c345c |
children | 3c4b8982068a |
files | src/prefs.c |
diffstat | 1 files changed, 8 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/prefs.c Sat Sep 28 22:12:57 2002 +0000 +++ b/src/prefs.c Sun Sep 29 01:36:11 2002 +0000 @@ -64,6 +64,7 @@ char fontface_new[128]; char fontface[128]; +GtkWidget *tree_v = NULL; GtkWidget *prefs_away_list = NULL; GtkWidget *prefs_away_menu = NULL; GtkWidget *preftree = NULL; @@ -105,6 +106,7 @@ sound_file_new[v] = NULL; } } + tree_v = NULL; sound_entry = NULL; browser_entry = NULL; debugbutton = NULL; @@ -906,6 +908,12 @@ if (g_module_symbol(plug->handle, "gaim_plugin_config_gtk", (gpointer *)&config)) { plug->iter = g_new0(GtkTreeIter, 1); prefs_notebook_add_page(plug->desc.name, NULL, config(), plug->iter, &plugin_iter, notebook_page++); + if (gtk_tree_model_iter_n_children(GTK_TREE_MODEL(prefstree), &plugin_iter) == 1) { + /* Expand the tree for the first plugin added */ + GtkTreePath *path2 = gtk_tree_model_get_path(prefstree, &plugin_iter); + gtk_tree_view_expand_row(GTK_TREE_VIEW(tree_v), path2, TRUE); + gtk_tree_path_free (path2); + } } } #else @@ -1476,7 +1484,6 @@ GtkWidget *vbox, *vbox2; GtkWidget *hbox; GtkWidget *frame; - GtkWidget *tree_v; GtkTreeViewColumn *column; GtkCellRenderer *cell; GtkTreeSelection *sel;