mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Andreas Kohler's patch to not scroll the tree view headers in the new-account hierarchy druid. Bug#330850.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13274 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
@@ -4,6 +4,11 @@
|
||||
g_types before we can expect gconf (via the gnc file backend) to
|
||||
work, as per the gconf API docs.
|
||||
|
||||
* src/gnome/dialog-hierarchy.c:
|
||||
* src/gnome/glade/account.glade: Andreas Köhler's patch to not
|
||||
scroll the tree view headers in the new-account hierarchy druid.
|
||||
Bug#330850.
|
||||
|
||||
2006-02-15 Derek Atkins <derek@ihtfp.com>
|
||||
|
||||
* src/business/business-core/business-core.scm:
|
||||
|
||||
@@ -74,12 +74,12 @@ typedef struct {
|
||||
|
||||
GtkTreeView *categories_tree;
|
||||
GtkTextView *category_description;
|
||||
GtkBox *category_accounts_box;
|
||||
GtkWidget *category_accounts_container;
|
||||
GtkTreeView *category_accounts_tree;
|
||||
gboolean category_set_changed;
|
||||
|
||||
GncTreeViewAccount *final_account_tree;
|
||||
GtkWidget *final_account_tree_box;
|
||||
GtkWidget *final_account_tree_container;
|
||||
Account *selected_account;
|
||||
/** Map<Account*,gnc_numeric*> **/
|
||||
GHashTable *balance_hash;
|
||||
@@ -390,7 +390,7 @@ categories_tree_selection_changed (GtkTreeSelection *selection,
|
||||
|
||||
data->category_accounts_tree = tree_view;
|
||||
gtk_tree_view_expand_all (tree_view);
|
||||
gtk_container_add(GTK_CONTAINER(data->category_accounts_box), GTK_WIDGET(tree_view));
|
||||
gtk_container_add(GTK_CONTAINER(data->category_accounts_container), GTK_WIDGET(tree_view));
|
||||
gtk_widget_show(GTK_WIDGET(tree_view));
|
||||
}
|
||||
}
|
||||
@@ -763,7 +763,7 @@ on_final_account_prepare (GnomeDruidPage *gnomedruidpage,
|
||||
{
|
||||
GList *renderers;
|
||||
column = gnc_tree_view_add_text_column(GNC_TREE_VIEW(tree_view),
|
||||
_("use existing"),
|
||||
_("Use Existing"),
|
||||
NULL,
|
||||
NULL,
|
||||
"yes",
|
||||
@@ -777,7 +777,7 @@ on_final_account_prepare (GnomeDruidPage *gnomedruidpage,
|
||||
g_list_free(renderers);
|
||||
}
|
||||
|
||||
gtk_container_add(GTK_CONTAINER(data->final_account_tree_box),
|
||||
gtk_container_add(GTK_CONTAINER(data->final_account_tree_container),
|
||||
GTK_WIDGET(data->final_account_tree));
|
||||
|
||||
/* Expand the entire tree */
|
||||
@@ -917,13 +917,13 @@ gnc_create_hierarchy_druid (GncHierarchyDruidFinishedCallback when_completed)
|
||||
gtk_tree_selection_set_mode (gtk_tree_view_get_selection (tree_view), GTK_SELECTION_SINGLE);
|
||||
data->categories_tree = tree_view;
|
||||
|
||||
data->category_accounts_box = GTK_BOX(glade_xml_get_widget (xml, "accounts_in_category"));
|
||||
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;
|
||||
gtk_widget_modify_base(GTK_WIDGET(data->category_description), GTK_STATE_INSENSITIVE, color);
|
||||
|
||||
/* Final Accounts Page */
|
||||
data->final_account_tree_box = glade_xml_get_widget (xml, "final_account_tree_box");
|
||||
data->final_account_tree_container = glade_xml_get_widget (xml, "final_account_tree_box");
|
||||
data->final_account_tree = NULL;
|
||||
|
||||
data->balance_hash = g_hash_table_new(NULL, NULL);
|
||||
|
||||
@@ -1469,7 +1469,7 @@ Click 'Cancel' if you do not wish to create any new accounts now.</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="hscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
|
||||
<property name="vscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
|
||||
<property name="shadow_type">GTK_SHADOW_NONE</property>
|
||||
<property name="shadow_type">GTK_SHADOW_IN</property>
|
||||
<property name="window_placement">GTK_CORNER_TOP_LEFT</property>
|
||||
|
||||
<child>
|
||||
@@ -1555,30 +1555,15 @@ Click 'Cancel' if you do not wish to create any new accounts now.</property>
|
||||
<property name="right_padding">0</property>
|
||||
|
||||
<child>
|
||||
<widget class="GtkScrolledWindow" id="scrolledwindow3">
|
||||
<widget class="GtkScrolledWindow" id="accounts_in_category">
|
||||
<property name="visible">True</property>
|
||||
<property name="hscrollbar_policy">GTK_POLICY_NEVER</property>
|
||||
<property name="vscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
|
||||
<property name="shadow_type">GTK_SHADOW_NONE</property>
|
||||
<property name="shadow_type">GTK_SHADOW_IN</property>
|
||||
<property name="window_placement">GTK_CORNER_TOP_LEFT</property>
|
||||
|
||||
<child>
|
||||
<widget class="GtkViewport" id="viewport2">
|
||||
<property name="visible">True</property>
|
||||
<property name="shadow_type">GTK_SHADOW_IN</property>
|
||||
|
||||
<child>
|
||||
<widget class="GtkHBox" id="accounts_in_category">
|
||||
<property name="visible">True</property>
|
||||
<property name="homogeneous">False</property>
|
||||
<property name="spacing">0</property>
|
||||
|
||||
<child>
|
||||
<placeholder/>
|
||||
</child>
|
||||
</widget>
|
||||
</child>
|
||||
</widget>
|
||||
<placeholder/>
|
||||
</child>
|
||||
</widget>
|
||||
</child>
|
||||
@@ -1646,7 +1631,7 @@ If you would like an account to be a placeholder account, just click the checkbo
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkScrolledWindow" id="scrolledwindow4">
|
||||
<widget class="GtkScrolledWindow" id="final_account_tree_box">
|
||||
<property name="visible">True</property>
|
||||
<property name="hscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
|
||||
<property name="vscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
|
||||
@@ -1654,22 +1639,7 @@ If you would like an account to be a placeholder account, just click the checkbo
|
||||
<property name="window_placement">GTK_CORNER_TOP_LEFT</property>
|
||||
|
||||
<child>
|
||||
<widget class="GtkViewport" id="viewport3">
|
||||
<property name="visible">True</property>
|
||||
<property name="shadow_type">GTK_SHADOW_IN</property>
|
||||
|
||||
<child>
|
||||
<widget class="GtkHBox" id="final_account_tree_box">
|
||||
<property name="visible">True</property>
|
||||
<property name="homogeneous">False</property>
|
||||
<property name="spacing">0</property>
|
||||
|
||||
<child>
|
||||
<placeholder/>
|
||||
</child>
|
||||
</widget>
|
||||
</child>
|
||||
</widget>
|
||||
<placeholder/>
|
||||
</child>
|
||||
</widget>
|
||||
<packing>
|
||||
|
||||
Reference in New Issue
Block a user