[grisbi-cvs] [SCM] grisbi branch, master, updated. upstream_version_0_7_4-117-g12a608c
Pierre Biava
nobody at users.sourceforge.net
Wed Dec 1 21:22:41 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 12a608c612c5d60f99ef4f9cd4e4bb10431446d6 (commit)
from f68667736741ac0f04fcd121810701cf0ad2dbb8 (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 12a608c612c5d60f99ef4f9cd4e4bb10431446d6
Author: pbiava <pierre.biava at nerim.net>
Date: Wed Dec 1 21:19:42 2010 +0100
uniform color of the selected lines of tree_views
-----------------------------------------------------------------------
Changes:
diff --git a/src/bet_finance_ui.c b/src/bet_finance_ui.c
index 0f0c829..7caaea1 100644
--- a/src/bet_finance_ui.c
+++ b/src/bet_finance_ui.c
@@ -92,6 +92,7 @@ static void bet_finance_type_taux_changed ( GtkWidget *togglebutton, GdkEventBut
extern GtkWidget *account_page;
extern GdkColor calendar_entry_color;
extern GdkColor couleur_fond[2];
+extern GdkColor couleur_selection;
extern GtkWidget *window;
/*END_EXTERN*/
@@ -293,6 +294,9 @@ GtkWidget *bet_finance_create_simulator_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 );
+
/* on y ajoute la barre d'outils */
toolbar = bet_finance_create_simulator_toolbar ( page, tree_view, TRUE, FALSE );
gtk_box_pack_start ( GTK_BOX ( page ), toolbar, FALSE, FALSE, 0 );
diff --git a/src/bet_tab.c b/src/bet_tab.c
index 6d7c202..2958597 100644
--- a/src/bet_tab.c
+++ b/src/bet_tab.c
@@ -78,6 +78,7 @@ static void bet_array_adjust_hist_amount ( gint div_number,
gsb_real amount,
GtkTreeModel *model );
static void bet_array_auto_inc_month_toggle ( GtkToggleButton *togglebutton, gpointer data );
+static GtkWidget *bet_array_create_tree_view ( GtkWidget *container );
static gint bet_array_date_sort_function ( GtkTreeModel *model,
GtkTreeIter *itera,
GtkTreeIter *iterb,
@@ -147,7 +148,6 @@ static gboolean bet_array_update_average_column ( GtkTreeModel *model,
GtkTreePath *path,
GtkTreeIter *iter,
gpointer data );
-static GtkWidget *bet_array_create_tree_view ( GtkWidget *container );
/*END_STATIC*/
/*START_EXTERN*/
@@ -155,6 +155,7 @@ extern GtkWidget *account_page;
extern gchar* bet_duration_array[];
extern GdkColor couleur_bet_division;
extern GdkColor couleur_bet_future;
+extern GdkColor couleur_selection;
extern GdkColor couleur_bet_solde;
extern GdkColor couleur_bet_transfert;
extern GdkColor couleur_fond[2];
@@ -593,25 +594,6 @@ GtkWidget *bet_array_create_page ( void )
tree_view = bet_array_create_tree_view ( page );
g_object_set_data ( G_OBJECT ( tree_view ), "label_title", label_title );
- /* création du bouton print
- handlebox = gtk_handle_box_new ( );
- hbox = gtk_hbox_new ( FALSE, 0 );
- gtk_container_add ( GTK_CONTAINER ( handlebox ), hbox );
-
- button = gsb_automem_stock_button_new ( etat.display_toolbar,
- GTK_STOCK_PRINT,
- _("Print"),
- NULL,
- NULL );
- gtk_widget_set_tooltip_text ( GTK_WIDGET ( button ), _("Print the array") );
- g_signal_connect ( G_OBJECT ( button ),
- "clicked",
- G_CALLBACK ( print_tree_view_list ),
- tree_view );
- gtk_box_pack_start ( GTK_BOX ( hbox ), button, FALSE, FALSE, 5 );
- gtk_box_pack_start ( GTK_BOX ( page ), handlebox, FALSE, FALSE, 0 );
- gtk_box_reorder_child ( GTK_BOX ( page ), handlebox, 0 ); */
-
/* on y ajoute la barre d'outils */
toolbar = bet_array_list_create_toolbar ( page, tree_view );
gtk_box_pack_start ( GTK_BOX ( page ), toolbar, FALSE, FALSE, 0 );
@@ -640,13 +622,16 @@ GtkWidget *bet_array_create_tree_view ( GtkWidget *container )
/* create the estimate treeview */
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 ), "bet_estimate_treeview", tree_view );
g_object_set_data ( G_OBJECT ( tree_view ), "origin_data_model",
GINT_TO_POINTER ( SPP_ESTIMATE_TREE_ORIGIN_DATA ) );
g_object_set_data ( G_OBJECT ( tree_view ), "color_data_model",
GINT_TO_POINTER ( SPP_ESTIMATE_TREE_COLOR_STRING ) );
+ /* set the color of selected row */
+ gtk_widget_modify_base ( tree_view, GTK_STATE_SELECTED, &couleur_selection );
+
/* create the model */
tree_model = gtk_tree_store_new ( SPP_ESTIMATE_TREE_NUM_COLUMNS,
G_TYPE_BOOLEAN, /* SPP_ESTIMATE_TREE_SELECT_COLUMN */
@@ -2068,7 +2053,7 @@ gboolean bet_array_list_set_background_color ( GtkWidget *tree_view )
if ( !tree_view )
return FALSE;
- model = gtk_tree_view_get_model ( GTK_TREE_VIEW ( tree_view ));
+ model = gtk_tree_view_get_model ( GTK_TREE_VIEW ( tree_view ) );
if ( gtk_tree_model_get_iter_first ( GTK_TREE_MODEL ( model ), &iter ) )
{
diff --git a/src/categories_onglet.c b/src/categories_onglet.c
index 1ffb51c..2f33093 100644
--- a/src/categories_onglet.c
+++ b/src/categories_onglet.c
@@ -72,6 +72,7 @@ struct metatree_hold_position *category_hold_position;
/*START_EXTERN*/
extern MetatreeInterface * category_interface;
+extern GdkColor couleur_selection;
extern GtkWidget *window;
/*END_EXTERN*/
@@ -94,6 +95,10 @@ GtkWidget *onglet_categories ( void )
/* We create the gtktreeview and model early so that they can be referenced. */
arbre_categ = gtk_tree_view_new();
+
+ /* set the color of selected row */
+ gtk_widget_modify_base ( arbre_categ, GTK_STATE_SELECTED, &couleur_selection );
+
categ_tree_model = gtk_tree_store_new ( META_TREE_NUM_COLUMNS, META_TREE_COLUMN_TYPES );
/* We create the main vbox */
diff --git a/src/gsb_scheduler_list.c b/src/gsb_scheduler_list.c
index cd21a9f..a0f2cc4 100644
--- a/src/gsb_scheduler_list.c
+++ b/src/gsb_scheduler_list.c
@@ -99,6 +99,7 @@ extern gint affichage_echeances;
extern gint affichage_echeances_perso_nb_libre;
extern GdkColor couleur_fond[2];
extern GdkColor couleur_grise;
+extern GdkColor couleur_selection;
extern struct conditional_message delete_msg[];
extern gint mise_a_jour_liste_echeances_manuelles_accueil;
extern GtkWidget * navigation_tree_view;
@@ -190,6 +191,8 @@ GtkWidget *gsb_scheduler_list_create_list ( void )
gtk_container_add ( GTK_CONTAINER (scrolled_window),
tree_view);
+ /* set the color of selected row */
+ gtk_widget_modify_base ( tree_view, GTK_STATE_SELECTED, &couleur_selection );
/* create the columns */
gsb_scheduler_list_create_list_columns (tree_view);
diff --git a/src/imputation_budgetaire.c b/src/imputation_budgetaire.c
index 65ff5d0..3570917 100644
--- a/src/imputation_budgetaire.c
+++ b/src/imputation_budgetaire.c
@@ -79,6 +79,7 @@ struct metatree_hold_position *budgetary_hold_position;
/*START_EXTERN*/
extern MetatreeInterface * budgetary_interface;
+extern GdkColor couleur_selection;
extern GtkWidget *window;
/*END_EXTERN*/
@@ -106,6 +107,10 @@ GtkWidget *onglet_imputations ( void )
/* We create the gtktreeview and model early so that they can be referenced. */
budgetary_line_tree = gtk_tree_view_new();
+
+ /* set the color of selected row */
+ gtk_widget_modify_base ( budgetary_line_tree, GTK_STATE_SELECTED, &couleur_selection );
+
budgetary_line_tree_model = gtk_tree_store_new ( META_TREE_NUM_COLUMNS,
META_TREE_COLUMN_TYPES );
diff --git a/src/tiers_onglet.c b/src/tiers_onglet.c
index 321742c..af967cc 100644
--- a/src/tiers_onglet.c
+++ b/src/tiers_onglet.c
@@ -114,6 +114,7 @@ struct metatree_hold_position *payee_hold_position;
struct conditional_message *overwrite_payee;
/*START_EXTERN*/
+extern GdkColor couleur_selection;
extern GSList *liste_associations_tiers;
extern MetatreeInterface * payee_interface;
extern GtkWidget *window;
@@ -175,6 +176,10 @@ GtkWidget *onglet_tiers ( void )
/* We create the gtktreeview and model early so that they can be referenced. */
payee_tree = gtk_tree_view_new();
+
+ /* set the color of selected row */
+ gtk_widget_modify_base ( payee_tree, GTK_STATE_SELECTED, &couleur_selection );
+
payee_tree_model = gtk_tree_store_new ( META_TREE_NUM_COLUMNS, META_TREE_COLUMN_TYPES );
/* on y ajoute la barre d'outils */
hooks/post-receive
--
grisbi
More information about the cvs
mailing list