[grisbi-cvs] [SCM] grisbi branch, master, updated. upstream_version_1_1_1-67-ga26270a
Pierre Biava
nobody at users.sourceforge.net
Mon Jan 14 21:13:20 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, master has been updated
via a26270aa8710a08c674be2f33a24797c4aa794df (commit)
from cc5fa7fee80abf16b282b1ac544563399a866834 (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 a26270aa8710a08c674be2f33a24797c4aa794df
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(cherry picked from commit 5fce1743901145e7a0fa7c256539ae5bfdcf7caf)
-----------------------------------------------------------------------
Changes:
diff --git a/src/gsb_scheduler_list.c b/src/gsb_scheduler_list.c
index 0207e4f..dceebfb 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