[grisbi-cvs] grisbi/src metatree.c,1.125,1.126

Pierre Biava pbiava at users.sourceforge.net
Sat Jan 31 20:27:08 CET 2009


Update of /cvsroot/grisbi/grisbi/src
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv8458

Modified Files:
	metatree.c 
Log Message:
Fixed bug 463 second part. Part one see comments bug

Index: metatree.c
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/metatree.c,v
retrieving revision 1.125
retrieving revision 1.126
diff -u -d -r1.125 -r1.126
--- metatree.c	8 Jan 2009 18:47:56 -0000	1.125
+++ metatree.c	31 Jan 2009 19:27:05 -0000	1.126
@@ -2139,8 +2139,10 @@
 	{
 	    div_id = iface -> transaction_div_id (current_number);
 	    sub_div_id = iface -> transaction_sub_div_id (current_number);
+        metatree_set_linked_widgets_sensitive ( model, FALSE, "selection" );
 	}
-
+    else
+        metatree_set_linked_widgets_sensitive ( model, TRUE, "selection" );
 	text = g_strconcat ( _(iface -> meta_name),  " : ", 
 			     (div_id ? iface -> div_name ( div_id ) : _(iface->no_div_label) ),
 			     NULL );
@@ -2171,7 +2173,7 @@
 	return FALSE;
 
     /* Update sensitiveness of linked widgets. */
-    metatree_set_linked_widgets_sensitive ( model, selection_is_set, "selection" );
+    //~ metatree_set_linked_widgets_sensitive ( model, selection_is_set, "selection" );
     if ( ! div_id || ( sub_div_id <= 0 && current_number <= 0 ) )
     {
 	metatree_set_linked_widgets_sensitive ( model, FALSE, "selection" );



More information about the cvs mailing list