[grisbi-cvs] [SCM] grisbi branch, master, updated. upstream_version_0_9_5-110-g79f237a
Pierre Biava
nobody at users.sourceforge.net
Sat Aug 18 10:42:49 CEST 2012
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 79f237adda0b0d664779e990af76b84905efe314 (commit)
from 021e83916548a3295687087cf011535cb46ccff5 (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 79f237adda0b0d664779e990af76b84905efe314
Author: pbiava <pierre.biava at nerim.net>
Date: Sat Aug 18 10:42:29 2012 +0200
Add a checkmark in the sub-menu "Change cell content"
-----------------------------------------------------------------------
Changes:
diff --git a/src/gsb_transactions_list.c b/src/gsb_transactions_list.c
index bef8215..fb9a6cc 100644
--- a/src/gsb_transactions_list.c
+++ b/src/gsb_transactions_list.c
@@ -2572,7 +2572,9 @@ GtkWidget *gsb_gui_create_cell_contents_menu ( int x, int y )
{
GtkWidget * menu, * item;
gint i;
+ gint element_number;
+ element_number = tab_affichage_ope[y][x];
menu = gtk_menu_new ();
for ( i = 0 ; i < 18 ; i++ )
@@ -2580,9 +2582,12 @@ GtkWidget *gsb_gui_create_cell_contents_menu ( int x, int y )
gchar *tmp_str;
tmp_str = gsb_transaction_list_get_titre_colonne_liste_ope ( i );
- item = gtk_menu_item_new_with_label ( tmp_str );
+ item = gtk_check_menu_item_new_with_label ( tmp_str );
g_free ( tmp_str );
+ if ( i == element_number -1 )
+ gtk_check_menu_item_set_active ( GTK_CHECK_MENU_ITEM ( item ), TRUE );
+
g_object_set_data ( G_OBJECT (item), "x", GINT_TO_POINTER (x) );
g_object_set_data ( G_OBJECT (item), "y", GINT_TO_POINTER (y) );
g_signal_connect ( G_OBJECT(item),
@@ -2601,7 +2606,7 @@ GtkWidget *gsb_gui_create_cell_contents_menu ( int x, int y )
g_object_set_data ( G_OBJECT ( item ), "y", GINT_TO_POINTER ( y ) );
g_signal_connect ( G_OBJECT ( item ),
"activate",
- G_CALLBACK ( gsb_gui_change_cell_content ),
+ G_CALLBACK ( gsb_gui_change_cell_content ),
GINT_TO_POINTER ( 0 ) );
gtk_menu_shell_append ( GTK_MENU_SHELL ( menu ), item );
hooks/post-receive
--
grisbi
More information about the cvs
mailing list