[grisbi-cvs] [SCM] grisbi branch, master, updated. upstream_version_0_7_4-118-gfa0ce38
Pierre Biava
nobody at users.sourceforge.net
Wed Dec 1 22:12:51 CET 2010
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "grisbi".
The branch, master has been updated
via fa0ce382b152584e04c0079f0ca7fcc5906f1616 (commit)
from 12a608c612c5d60f99ef4f9cd4e4bb10431446d6 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit fa0ce382b152584e04c0079f0ca7fcc5906f1616
Author: pbiava <pierre.biava at nerim.net>
Date: Wed Dec 1 22:12:26 2010 +0100
standardize the color of the selected lines of tree_views: complements
-----------------------------------------------------------------------
Changes:
diff --git a/src/bet_finance_ui.c b/src/bet_finance_ui.c
index 7caaea1..c4c5159 100644
--- a/src/bet_finance_ui.c
+++ b/src/bet_finance_ui.c
@@ -296,6 +296,7 @@ GtkWidget *bet_finance_create_simulator_page ( void )
/* set the color of selected row */
gtk_widget_modify_base ( tree_view, GTK_STATE_SELECTED, &couleur_selection );
+ gtk_widget_modify_base ( tree_view, GTK_STATE_ACTIVE, &couleur_selection );
/* on y ajoute la barre d'outils */
toolbar = bet_finance_create_simulator_toolbar ( page, tree_view, TRUE, FALSE );
@@ -440,7 +441,7 @@ GtkWidget *bet_finance_create_data_tree_view ( GtkWidget *container )
gchar *title;
tree_view = gtk_tree_view_new ( );
- gtk_tree_view_set_rules_hint ( GTK_TREE_VIEW ( tree_view ), TRUE );
+ gtk_tree_view_set_rules_hint ( GTK_TREE_VIEW ( tree_view ), FALSE );
/* Create the tree store */
tree_model = gtk_tree_store_new ( BET_FINANCE_NBRE_COLUMNS,
@@ -1155,6 +1156,10 @@ GtkWidget *bet_finance_create_amortization_page ( void )
g_object_set_data ( G_OBJECT ( page ), "tree_view", tree_view );
g_object_set_data ( G_OBJECT ( tree_view ), "label_title", label_title );
+ /* set the color of selected row */
+ gtk_widget_modify_base ( tree_view, GTK_STATE_SELECTED, &couleur_selection );
+ gtk_widget_modify_base ( tree_view, GTK_STATE_ACTIVE, &couleur_selection );
+
/* on y ajoute la barre d'outils */
toolbar = bet_finance_create_simulator_toolbar ( page, tree_view, FALSE, TRUE );
gtk_box_pack_start ( GTK_BOX ( page ), toolbar, FALSE, FALSE, 0 );
@@ -1183,7 +1188,7 @@ GtkWidget *bet_finance_create_amortization_tree_view ( GtkWidget *container, gin
devel_debug ( NULL);
tree_view = gtk_tree_view_new ( );
- gtk_tree_view_set_rules_hint ( GTK_TREE_VIEW ( tree_view ), TRUE );
+ gtk_tree_view_set_rules_hint ( GTK_TREE_VIEW ( tree_view ), FALSE );
/* Create the tree store */
tree_model = gtk_tree_store_new ( BET_AMORTIZATION_NBRE_COLUMNS,
@@ -1591,6 +1596,10 @@ GtkWidget *bet_finance_create_account_page ( void )
g_object_set_data ( G_OBJECT ( account_page ), "bet_finance_tree_view", tree_view );
g_object_set_data ( G_OBJECT ( tree_view ), "label_title", label_title );
+ /* set the color of selected row */
+ gtk_widget_modify_base ( tree_view, GTK_STATE_SELECTED, &couleur_selection );
+ gtk_widget_modify_base ( tree_view, GTK_STATE_ACTIVE, &couleur_selection );
+
/* on y ajoute la barre d'outils */
toolbar = bet_finance_create_simulator_toolbar ( page, tree_view, FALSE, FALSE );
gtk_box_pack_start ( GTK_BOX ( page ), toolbar, FALSE, FALSE, 0 );
diff --git a/src/bet_hist.c b/src/bet_hist.c
index c080a45..4a41619 100644
--- a/src/bet_hist.c
+++ b/src/bet_hist.c
@@ -96,6 +96,7 @@ static gboolean bet_historical_set_full_sub_div ( GtkTreeModel *model, GtkTreeIt
/*START_EXTERN*/
extern GtkWidget *account_page;
extern GdkColor couleur_fond[2];
+extern GdkColor couleur_selection;
extern GtkWidget *notebook_general;
extern gsb_real null_real;
/*END_EXTERN*/
@@ -210,6 +211,10 @@ GtkWidget *bet_historical_create_page ( void )
tree_view = bet_historical_get_data_tree_view ( page );
g_object_set_data ( G_OBJECT ( account_page ), "bet_historical_treeview", tree_view );
+ /* set the color of selected row */
+ gtk_widget_modify_base ( tree_view, GTK_STATE_SELECTED, &couleur_selection );
+ gtk_widget_modify_base ( tree_view, GTK_STATE_ACTIVE, &couleur_selection );
+
gtk_widget_show_all ( page );
return page;
@@ -476,7 +481,7 @@ GtkWidget *bet_historical_get_data_tree_view ( GtkWidget *container )
/* devel_debug (NULL); */
tree_view = gtk_tree_view_new ( );
- gtk_tree_view_set_rules_hint ( GTK_TREE_VIEW (tree_view), TRUE);
+ gtk_tree_view_set_rules_hint ( GTK_TREE_VIEW (tree_view), FALSE );
g_object_set_data ( G_OBJECT ( account_page ), "hist_tree_view", tree_view );
tree_model = gtk_tree_store_new ( SPP_HISTORICAL_NUM_COLUMNS,
diff --git a/src/bet_tab.c b/src/bet_tab.c
index 2958597..e9697ff 100644
--- a/src/bet_tab.c
+++ b/src/bet_tab.c
@@ -631,6 +631,7 @@ GtkWidget *bet_array_create_tree_view ( GtkWidget *container )
/* set the color of selected row */
gtk_widget_modify_base ( tree_view, GTK_STATE_SELECTED, &couleur_selection );
+ gtk_widget_modify_base ( tree_view, GTK_STATE_ACTIVE, &couleur_selection );
/* create the model */
tree_model = gtk_tree_store_new ( SPP_ESTIMATE_TREE_NUM_COLUMNS,
diff --git a/src/gsb_scheduler_list.c b/src/gsb_scheduler_list.c
index a0f2cc4..f580bfa 100644
--- a/src/gsb_scheduler_list.c
+++ b/src/gsb_scheduler_list.c
@@ -193,6 +193,7 @@ GtkWidget *gsb_scheduler_list_create_list ( void )
/* set the color of selected row */
gtk_widget_modify_base ( tree_view, GTK_STATE_SELECTED, &couleur_selection );
+ gtk_widget_modify_base ( tree_view, GTK_STATE_ACTIVE, &couleur_selection );
/* create the columns */
gsb_scheduler_list_create_list_columns (tree_view);
hooks/post-receive
--
grisbi
More information about the cvs
mailing list