mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Change the title of the category view to track changes in the
highlighted group name. Fixes reopened 334783. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13704 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
13
ChangeLog
13
ChangeLog
@@ -1,9 +1,16 @@
|
||||
2006-03-27 David Hampton <hampton@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@tuhh.de>
|
||||
|
||||
* src/register/register-gnome/gnucash-sheet.h: Stick with vertical
|
||||
padding of 2 as discussed in bug#334920.
|
||||
|
||||
2006-03-25 David Hampton <david@hampton-pc.rainbolthampton.net>
|
||||
2006-03-25 David Hampton <hampton@employees.org>
|
||||
|
||||
* src/gnome/gnc-plugin-page-register.c:
|
||||
* src/gnome/ui/gnc-plugin-page-register-ui.xml: Add a reconcile
|
||||
@@ -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@hampton-pc.rainbolthampton.net>
|
||||
2006-03-25 David Hampton <hampton@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@hampton-pc.rainbolthampton.net>
|
||||
2006-03-24 David Hampton <hampton@employees.org>
|
||||
|
||||
* src/gnome/ui/gnc-reconcile-window-ui.xml:
|
||||
* src/gnome/window-reconcile.c: Add toolbar icons for Postpone and
|
||||
|
||||
@@ -78,6 +78,7 @@ typedef struct {
|
||||
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 @@ categories_tree_selection_changed (GtkTreeSelection *selection,
|
||||
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 @@ categories_tree_selection_changed (GtkTreeSelection *selection,
|
||||
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 @@ gnc_create_hierarchy_druid (gboolean use_defaults, GncHierarchyDruidFinishedCall
|
||||
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;
|
||||
|
||||
@@ -1522,9 +1522,9 @@ Click 'Cancel' if you do not wish to create any new accounts now.</property>
|
||||
<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>
|
||||
|
||||
Reference in New Issue
Block a user