[grisbi-cvs] [SCM] grisbi branch, grisbi-1.0.x, updated. upstream_version_0_9_90-32-g5fce174
Pierre Biava
nobody at users.sourceforge.net
Mon Jan 14 19:42:26 CET 2013
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, grisbi-1.0.x has been updated
via 5fce1743901145e7a0fa7c256539ae5bfdcf7caf (commit)
from 5cc1df94b3cb24d3cbe89437010ed8de339bd44b (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 5fce1743901145e7a0fa7c256539ae5bfdcf7caf
Author: pbiava <pierre.biava at nerim.net>
Date: Sat Jan 12 06:35:29 2013 +0100
Fixed a bug when creating context menu for a new operation
-----------------------------------------------------------------------
Changes:
diff --git a/src/gsb_scheduler_list.c b/src/gsb_scheduler_list.c
index 9c9da9c..746f24d 100644
--- a/src/gsb_scheduler_list.c
+++ b/src/gsb_scheduler_list.c
@@ -2323,6 +2323,8 @@ void popup_scheduled_context_menu ( void )
"activate",
G_CALLBACK ( gsb_scheduler_list_edit_transaction_by_pointer ),
GINT_TO_POINTER ( scheduled_number ) );
+ if ( scheduled_number < 0 )
+ gtk_widget_set_sensitive ( menu_item, FALSE );
gtk_menu_shell_append ( GTK_MENU_SHELL ( menu ), menu_item );
@@ -2335,6 +2337,8 @@ void popup_scheduled_context_menu ( void )
"activate",
G_CALLBACK ( gsb_scheduler_list_clone_selected_scheduled ),
GINT_TO_POINTER ( scheduled_number ) );
+ if ( scheduled_number < 0 )
+ gtk_widget_set_sensitive ( menu_item, FALSE );
gtk_menu_shell_append ( GTK_MENU_SHELL ( menu ), menu_item );
@@ -2361,6 +2365,10 @@ void popup_scheduled_context_menu ( void )
"activate",
G_CALLBACK ( gsb_scheduler_list_delete_scheduled_transaction_by_menu ),
NULL );
+
+ if ( scheduled_number < 0 )
+ gtk_widget_set_sensitive ( menu_item, FALSE );
+
gtk_menu_shell_append ( GTK_MENU_SHELL ( menu ), menu_item );
/* Separator */
@@ -2393,6 +2401,9 @@ void popup_scheduled_context_menu ( void )
"activate",
G_CALLBACK ( gsb_scheduler_list_execute_transaction ),
NULL );
+ if ( scheduled_number < 0 )
+ gtk_widget_set_sensitive ( menu_item, FALSE );
+
gtk_menu_shell_append ( GTK_MENU_SHELL ( menu ), menu_item );
/* Finish all. */
hooks/post-receive
--
grisbi
More information about the cvs
mailing list