[Gnucash-changes] r12235 - gnucash/trunk - Use the right function to hide a tree column. Update a couple of

David Hampton hampton at cvs.gnucash.org
Mon Jan 2 16:14:31 EST 2006


Author: hampton
Date: 2006-01-02 16:14:31 -0500 (Mon, 02 Jan 2006)
New Revision: 12235
Trac: http://svn.gnucash.org/trac/changeset/12235

Modified:
   gnucash/trunk/ChangeLog
   gnucash/trunk/src/gnome-utils/gnc-tree-view.c
Log:
Use the right function to hide a tree column. Update a couple of
debugging messages.


Modified: gnucash/trunk/ChangeLog
===================================================================
--- gnucash/trunk/ChangeLog	2006-01-02 21:11:26 UTC (rev 12234)
+++ gnucash/trunk/ChangeLog	2006-01-02 21:14:31 UTC (rev 12235)
@@ -1,5 +1,8 @@
 2006-01-02  David Hampton  <hampton at employees.org>
 
+	* src/gnome-utils/gnc-tree-view.c: Use the right function to hide
+	a tree column. Update a couple of debugging messages.
+
 	* src/engine/gw-engine-spec.scm:
 	* src/engine/gnc-commodity.[ch]: Initialize the qof instances in
 	commodity namespaces.

Modified: gnucash/trunk/src/gnome-utils/gnc-tree-view.c
===================================================================
--- gnucash/trunk/src/gnome-utils/gnc-tree-view.c	2006-01-02 21:11:26 UTC (rev 12234)
+++ gnucash/trunk/src/gnome-utils/gnc-tree-view.c	2006-01-02 21:14:31 UTC (rev 12235)
@@ -870,10 +870,10 @@
     key = g_strdup_printf("%s_%s", name, GCONF_KEY_VISIBLE);
     gnc_gconf_set_bool(priv->gconf_section, key, visible, NULL);
     g_free(key);
-    LEAVE("made visible, set gconf key");
+    LEAVE("made %s, set gconf key", visible ? "visible" : "invisible");
     return;
   }
-  LEAVE("made visible");
+  LEAVE("made %s", visible ? "visible" : "invisible");
 }
 
 /** This function is called via the gconf notification callback when
@@ -1421,8 +1421,7 @@
   if (priv->show_column_menu && priv->gconf_section) {
     /* Show the menu popup button */
     if (priv->column_menu_column)
-      g_object_set(G_OBJECT(priv->column_menu_column),
-		   "visible", TRUE, NULL);
+      gtk_tree_view_column_set_visible(priv->column_menu_column, TRUE);
 
     /* Now build a new menu */
     column_list = gtk_tree_view_get_columns(GTK_TREE_VIEW(view));
@@ -1431,8 +1430,7 @@
   } else {
     /* Hide the menu popup button */
     if (priv->column_menu_column)
-      g_object_set(G_OBJECT(priv->column_menu_column),
-		   "visible", FALSE, NULL);
+      gtk_tree_view_column_set_visible(priv->column_menu_column, FALSE);
   }
   LEAVE("menu: show %d, section %s", priv->show_column_menu,
 	priv->gconf_section);



More information about the gnucash-changes mailing list