Change CSS class and names set via g_object

Change the CSS classes and widget names to a standard naming for all of
Gnucash. This should make it easier to adjust Gnucash appearance if
required. CSS classes all begin with 'gnc-class-' and widget names
begin with 'gnc-id-'
pull/684/head
Robert Fewell 6 years ago
parent 08beb7c5a7
commit c3900aacbc

@ -746,7 +746,7 @@ gnc_tree_view_account_new_with_root (Account *root, gboolean show_root)
ENTER(" ");
/* Create our view */
view = g_object_new (GNC_TYPE_TREE_VIEW_ACCOUNT,
"name", "account_tree", NULL);
"name", "gnc-id-account-tree", NULL);
priv = GNC_TREE_VIEW_ACCOUNT_GET_PRIVATE(GNC_TREE_VIEW_ACCOUNT (view));

@ -342,7 +342,7 @@ gnc_tree_view_commodity_new (QofBook *book,
/* Create our view */
view = g_object_new (GNC_TYPE_TREE_VIEW_COMMODITY,
"name", "commodity_tree", NULL);
"name", "gnc-id-commodity-tree", NULL);
gtk_tree_view_set_model (GTK_TREE_VIEW (view), s_model);
g_object_unref(G_OBJECT(s_model));

@ -367,7 +367,7 @@ gnc_tree_view_owner_new (GncOwnerType owner_type)
}
/* Create our view */
view = g_object_new (GNC_TYPE_TREE_VIEW_OWNER,
"name", "owner_tree", NULL);
"name", "gnc-id-owner-tree", NULL);
priv = GNC_TREE_VIEW_OWNER_GET_PRIVATE(GNC_TREE_VIEW_OWNER (view));

@ -382,7 +382,7 @@ gnc_tree_view_price_new (QofBook *book,
/* Create our view */
view = g_object_new (GNC_TYPE_TREE_VIEW_PRICE,
"name", "price_tree", NULL);
"name", "gnc-id-price-tree", NULL);
gtk_tree_view_set_model (GTK_TREE_VIEW (view), s_model);
g_object_unref(G_OBJECT(s_model));

@ -979,7 +979,7 @@ gnc_tree_view_split_reg_new_with_model (GncTreeModelSplitReg *model)
GtkTreeSelection *selection;
view = g_object_new (gnc_tree_view_split_reg_get_type(), NULL);
g_object_set (view, "name", "split_reg_tree", NULL);
g_object_set (view, "name", "gnc-id-split-reg-tree", NULL);
view->priv->anchor = gnc_tree_model_split_reg_get_anchor (model);
view->priv->reg_comm = xaccAccountGetCommodity (view->priv->anchor);

@ -125,7 +125,7 @@ gnc_tree_view_sx_list_new(GncSxInstanceModel *sx_instances)
GncTreeViewSxListPrivate *priv;
view = (GncTreeView*)g_object_new(GNC_TYPE_TREE_VIEW_SX_LIST, NULL);
g_object_set(view, "name", "sx_list_tree", NULL);
g_object_set(view, "name", "gnc-id-sx-list-tree", NULL);
priv = GNC_TREE_VIEW_SX_LIST_GET_PRIVATE(view);

Loading…
Cancel
Save