From 5c470182c53ab0ade4cb285f588adbb056ee9784 Mon Sep 17 00:00:00 2001 From: Paul Mangan Date: Sat, 31 Jan 2009 15:09:14 +0000 Subject: [PATCH] 2009-01-31 [paul] 3.7.0cvs50 * src/gtk/prefswindow.c build prefs tree in a slightly smarter way - fix bug where if path[0] had same name as path[1], (like in the de translation), path[1] was lost and not shown in the window --- ChangeLog | 8 ++++++++ PATCHSETS | 1 + configure.ac | 2 +- src/gtk/prefswindow.c | 2 +- 4 files changed, 11 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 281076b27..e831ae46c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2009-01-31 [paul] 3.7.0cvs50 + + * src/gtk/prefswindow.c + build prefs tree in a slightly smarter way - + fix bug where if path[0] had same name as + path[1], (like in the de translation), path[1] + was lost and not shown in the window + 2009-01-31 [paul] 3.7.0cvs49 * src/compose.c diff --git a/PATCHSETS b/PATCHSETS index 7ea98eb39..755d4159f 100644 --- a/PATCHSETS +++ b/PATCHSETS @@ -3711,3 +3711,4 @@ ( cvs diff -u -r 1.1.2.25 -r 1.1.2.26 src/prefs_compose_writing.c; cvs diff -u -r 1.1.2.29 -r 1.1.2.30 src/prefs_message.c; ) > 3.7.0cvs47.patchset ( cvs diff -u -r 1.395.2.405 -r 1.395.2.406 src/summaryview.c; ) > 3.7.0cvs48.patchset ( cvs diff -u -r 1.382.2.496 -r 1.382.2.497 src/compose.c; cvs diff -u -r 1.13.2.18 -r 1.13.2.19 src/undo.c; ) > 3.7.0cvs49.patchset +( cvs diff -u -r 1.12.2.51 -r 1.12.2.52 src/gtk/prefswindow.c; ) > 3.7.0cvs50.patchset diff --git a/configure.ac b/configure.ac index ef07eafa6..3ff3d1572 100644 --- a/configure.ac +++ b/configure.ac @@ -11,7 +11,7 @@ MINOR_VERSION=7 MICRO_VERSION=0 INTERFACE_AGE=0 BINARY_AGE=0 -EXTRA_VERSION=49 +EXTRA_VERSION=50 EXTRA_RELEASE= EXTRA_GTK2_VERSION= diff --git a/src/gtk/prefswindow.c b/src/gtk/prefswindow.c index 1a23fc5da..f59df879f 100644 --- a/src/gtk/prefswindow.c +++ b/src/gtk/prefswindow.c @@ -337,7 +337,7 @@ static void prefswindow_build_tree(GtkWidget *tree_view, GSList *prefs_pages, gtk_tree_model_foreach(GTK_TREE_MODEL(store), (GtkTreeModelForeachFunc) find_node_by_name, &find_name); - if (find_name.found) { + if (find_name.found && page->path[i] != page->path[i-1]) { node = find_name.node; gtk_tree_model_get(GTK_TREE_MODEL(store), &node, PREFS_PAGE_DATA, &prefs_node, -- 2.25.1