[grisbi-cvs] [SCM] grisbi branch, master, updated. upstream_version_0_9_2-20-g5e80350

Pierre Biava nobody at users.sourceforge.net
Sun Jul 3 09:32:59 CEST 2011


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "grisbi".

The branch, master has been updated
       via  5e80350a2ba8d4648594d9b0d459f29c0ccc87be (commit)
      from  77236f7764d3c33337227c6466f2da3c7b07deff (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 5e80350a2ba8d4648594d9b0d459f29c0ccc87be
Author: pbiava <pierre.biava at nerim.net>
Date:   Sun Jul 3 09:32:21 2011 +0200

    Fixed a bug in the navigation panel left of Grisbi

-----------------------------------------------------------------------

Changes:
diff --git a/src/navigation.c b/src/navigation.c
index 0abab47..5c69ac4 100644
--- a/src/navigation.c
+++ b/src/navigation.c
@@ -2317,7 +2317,9 @@ void gsb_gui_navigation_activate_expander ( GtkTreeView *tree_view,
 {
     GtkTreeModel *model;
     gint type_page;
+    gint etat_expander;
 
+    etat_expander = GPOINTER_TO_INT ( user_data );
     model = gtk_tree_view_get_model ( GTK_TREE_VIEW ( tree_view ) );
 
     gtk_tree_model_get ( model, iter, NAVIGATION_PAGE, &type_page, -1 );
@@ -2326,12 +2328,15 @@ void gsb_gui_navigation_activate_expander ( GtkTreeView *tree_view,
     {
         case GSB_HOME_PAGE :
         case GSB_ACCOUNT_PAGE :
-            account_expander = GPOINTER_TO_INT ( user_data );
+            account_expander = etat_expander;
         break;
         case GSB_REPORTS_PAGE :
-            report_expander = GPOINTER_TO_INT ( user_data );
+            report_expander = etat_expander;
         break;
     }
+
+    if ( etat_expander == 0 )
+        gtk_tree_selection_select_iter ( gtk_tree_view_get_selection ( GTK_TREE_VIEW ( tree_view ) ), iter );
 }
 
 


hooks/post-receive
-- 
grisbi


More information about the cvs mailing list