[Gnucash-changes] r13704 - gnucash/trunk - Change the title of the
category view to track changes in the
David Hampton
hampton at cvs.gnucash.org
Mon Mar 27 21:04:08 EST 2006
Author: hampton
Date: 2006-03-27 21:04:07 -0500 (Mon, 27 Mar 2006)
New Revision: 13704
Trac: http://svn.gnucash.org/trac/changeset/13704
Modified:
gnucash/trunk/ChangeLog
gnucash/trunk/src/gnome/druid-hierarchy.c
gnucash/trunk/src/gnome/glade/account.glade
Log:
Change the title of the category view to track changes in the
highlighted group name. Fixes reopened 334783.
Modified: gnucash/trunk/ChangeLog
===================================================================
--- gnucash/trunk/ChangeLog 2006-03-27 20:33:34 UTC (rev 13703)
+++ gnucash/trunk/ChangeLog 2006-03-28 02:04:07 UTC (rev 13704)
@@ -1,3 +1,10 @@
+2006-03-27 David Hampton <hampton at employees.org>
+
+ * src/gnome/glade/account.glade:
+ * src/gnome/druid-hierarchy.c: Change the title of the category
+ view to track changes in the highlighted group name. Fixes
+ reopened 334783.
+
2006-03-27 Christian Stimming <stimming at tuhh.de>
* src/register/register-gnome/gnucash-sheet.h: Stick with vertical
@@ -3,5 +10,5 @@
padding of 2 as discussed in bug#334920.
-2006-03-25 David Hampton <david at hampton-pc.rainbolthampton.net>
+2006-03-25 David Hampton <hampton at employees.org>
* src/gnome/gnc-plugin-page-register.c:
@@ -17,7 +24,7 @@
* src/gnome-utils/test/Makefile.am:
link against GUILE_LIBS when building the test-link test app (#336007)
-2006-03-25 David Hampton <david at hampton-pc.rainbolthampton.net>
+2006-03-25 David Hampton <hampton at employees.org>
* src/register/register-gnome/combocell-gnome.c: Fix the lack of
action strings in the popup menu. The problem occurs because the
@@ -26,7 +33,7 @@
did) which is then passed off to the item_edit widget when that is
created. Fixes 334592.
-2006-03-24 David Hampton <david at hampton-pc.rainbolthampton.net>
+2006-03-24 David Hampton <hampton at employees.org>
* src/gnome/ui/gnc-reconcile-window-ui.xml:
* src/gnome/window-reconcile.c: Add toolbar icons for Postpone and
Modified: gnucash/trunk/src/gnome/druid-hierarchy.c
===================================================================
--- gnucash/trunk/src/gnome/druid-hierarchy.c 2006-03-27 20:33:34 UTC (rev 13703)
+++ gnucash/trunk/src/gnome/druid-hierarchy.c 2006-03-28 02:04:07 UTC (rev 13704)
@@ -78,6 +78,7 @@
GtkTreeRowReference *initial_category;
GtkTextView *category_description;
GtkWidget *category_accounts_container;
+ GtkLabel *category_accounts_label;
GtkTreeView *category_accounts_tree;
gboolean category_set_changed;
@@ -463,17 +464,19 @@
GtkTreeIter iter;
GncExampleAccount *gea;
GtkTextBuffer* buffer;
+ gchar *text;
/* Remove the old account tree */
if (data->category_accounts_tree)
gtk_widget_destroy(GTK_WIDGET(data->category_accounts_tree));
data->category_accounts_tree = NULL;
- buffer = gtk_text_view_get_buffer(data->category_description);
- gtk_text_buffer_set_text(buffer, "", -1);
/* Add a new one if something selected */
if (gtk_tree_selection_get_selected (selection, &model, &iter)) {
gtk_tree_model_get (model, &iter, COL_ACCOUNT, &gea, -1);
+ text = g_strdup_printf(_("<b>Accounts in '%s'</b>"), gea->title);
+ gtk_label_set_markup(data->category_accounts_label, text);
+ g_free(text);
buffer = gtk_text_view_get_buffer(data->category_description);
gtk_text_buffer_set_text(buffer, gea->long_description, -1);
@@ -486,6 +489,11 @@
gtk_tree_view_expand_all (tree_view);
gtk_container_add(GTK_CONTAINER(data->category_accounts_container), GTK_WIDGET(tree_view));
gtk_widget_show(GTK_WIDGET(tree_view));
+ } else {
+ gtk_label_set_markup(data->category_accounts_label,
+ _("<b>Accounts in Category</b>"));
+ buffer = gtk_text_view_get_buffer(data->category_description);
+ gtk_text_buffer_set_text(buffer, "", -1);
}
}
@@ -1032,7 +1040,8 @@
G_CALLBACK (categories_tree_selection_changed), data);
gtk_tree_selection_set_mode (gtk_tree_view_get_selection (tree_view), GTK_SELECTION_SINGLE);
data->categories_tree = tree_view;
-
+
+ data->category_accounts_label = GTK_LABEL(glade_xml_get_widget (xml, "accounts_in_category_label"));
data->category_accounts_container = glade_xml_get_widget (xml, "accounts_in_category");
data->category_description = GTK_TEXT_VIEW(glade_xml_get_widget (xml, "account_types_description"));
color = &GNOME_DRUID_PAGE_EDGE(start_page)->textbox_color;
Modified: gnucash/trunk/src/gnome/glade/account.glade
===================================================================
--- gnucash/trunk/src/gnome/glade/account.glade 2006-03-27 20:33:34 UTC (rev 13703)
+++ gnucash/trunk/src/gnome/glade/account.glade 2006-03-28 02:04:07 UTC (rev 13704)
@@ -1522,9 +1522,9 @@
<property name="spacing">6</property>
<child>
- <widget class="GtkLabel" id="label8477398">
+ <widget class="GtkLabel" id="accounts_in_category_label">
<property name="visible">True</property>
- <property name="label" translatable="yes"><b>Accounts in Selected Category</b></property>
+ <property name="label"><b>Accounts in %s</b></property>
<property name="use_underline">False</property>
<property name="use_markup">True</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
More information about the gnucash-changes
mailing list