[grisbi-cvs] grisbi/src gsb_data_payment.c, 1.12, 1.13 gsb_data_transaction.c, 1.67, 1.68 gsb_scheduler_list.c, 1.70, 1.71 gsb_scheduler_list.h, 1.22, 1.23 gsb_transactions_list.c, 1.175, 1.176 transaction_list.c, 1.43, 1.44

Pierre Biava pbiava at users.sourceforge.net
Sun Jul 5 11:24:50 CEST 2009


Update of /cvsroot/grisbi/grisbi/src
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv18764/src

Modified Files:
	gsb_data_payment.c gsb_data_transaction.c gsb_scheduler_list.c 
	gsb_scheduler_list.h gsb_transactions_list.c 
	transaction_list.c 
Log Message:
Adding a menu to delete the cell except for the first line (correction du bug 474 ?)

Index: gsb_data_transaction.c
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/gsb_data_transaction.c,v
retrieving revision 1.67
retrieving revision 1.68
diff -u -d -r1.67 -r1.68
--- gsb_data_transaction.c	17 Jun 2009 19:39:51 -0000	1.67
+++ gsb_data_transaction.c	5 Jul 2009 09:24:48 -0000	1.68
@@ -45,6 +45,7 @@
 #include "./transaction_list.h"
 #include "./include.h"
 #include "./gsb_real.h"
+#include "./erreur.h"
 /*END_INCLUDE*/
 
 
@@ -1518,7 +1519,7 @@
          * if we transform it as an archive, we remove it from the transactions_list */
         if (archive_number)
         {
-        transaction_list_remove_archive_transaction ( transaction_number );
+        //~ transaction_list_remove_archive_transaction ( transaction_number );
         transactions_list = g_slist_remove ( transactions_list, transaction );
         }
     }

Index: gsb_scheduler_list.c
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/gsb_scheduler_list.c,v
retrieving revision 1.70
retrieving revision 1.71
diff -u -d -r1.70 -r1.71
--- gsb_scheduler_list.c	27 Jun 2009 20:50:40 -0000	1.70
+++ gsb_scheduler_list.c	5 Jul 2009 09:24:48 -0000	1.71
@@ -71,7 +71,7 @@
                         GtkTreeIter *iter,
                         const gchar *line[SCHEDULER_COL_VISIBLE_COLUMNS] );
 static gboolean gsb_scheduler_list_fill_transaction_text ( gint scheduled_number,
-                        const gchar *line[SCHEDULER_COL_VISIBLE_COLUMNS]  );
+						    const gchar *line[SCHEDULER_COL_VISIBLE_COLUMNS]  );
 static GtkTreeIter *gsb_scheduler_list_get_iter_from_scheduled_number ( gint scheduled_number );
 static GSList *gsb_scheduler_list_get_iter_list_from_scheduled_number ( gint scheduled_number );
 static GtkTreeModel *gsb_scheduler_list_get_model ( void );

Index: gsb_transactions_list.c
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/gsb_transactions_list.c,v
retrieving revision 1.175
retrieving revision 1.176
diff -u -d -r1.175 -r1.176
--- gsb_transactions_list.c	5 Jul 2009 06:47:31 -0000	1.175
+++ gsb_transactions_list.c	5 Jul 2009 09:24:48 -0000	1.176
@@ -2191,7 +2191,17 @@
 			   G_CALLBACK(gsb_gui_change_cell_content), GINT_TO_POINTER (i+1));
 	gtk_menu_shell_append ( GTK_MENU_SHELL ( menu ), item );
     }
+    /* set a menu to clear the cell except for the first line */
+    if ( y > 0 )
+    {
+    item = gtk_menu_item_new_with_label ( _("Clear cell") );
 
+	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), "activate",
+			   G_CALLBACK(gsb_gui_change_cell_content), GINT_TO_POINTER (i+1));
+	gtk_menu_shell_append ( GTK_MENU_SHELL ( menu ), item );
+    }
     return menu;
 }
 
@@ -3395,8 +3405,9 @@
 	gint width;
 
 	width = (transaction_col_width[i] * (allocation -> width))/ 100;
+    if ( width > 0 )
 	gtk_tree_view_column_set_fixed_width ( transactions_tree_view_columns[i],
-					       width );
+                        width );
     }
     return FALSE;
 }

Index: gsb_data_payment.c
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/gsb_data_payment.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- gsb_data_payment.c	27 Jun 2009 19:17:53 -0000	1.12
+++ gsb_data_payment.c	5 Jul 2009 09:24:48 -0000	1.13
@@ -35,7 +35,6 @@
 #include "./utils_str.h"
 #include "./gsb_data_account.h"
 #include "./include.h"
-#include "./erreur.h"
 /*END_INCLUDE*/
 
 
@@ -646,7 +645,7 @@
 gint gsb_data_payment_get_last_number ( gint payment_number )
 {
     struct_payment *payment;
-devel_debug (NULL);
+
     payment = gsb_data_payment_get_structure ( payment_number );
 
     if (!payment)

Index: gsb_scheduler_list.h
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/gsb_scheduler_list.h,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -d -r1.22 -r1.23
--- gsb_scheduler_list.h	21 Oct 2008 11:30:14 -0000	1.22
+++ gsb_scheduler_list.h	5 Jul 2009 09:24:48 -0000	1.23
@@ -56,14 +56,14 @@
 
 /* START_DECLARATION */
 gboolean gsb_scheduler_list_append_new_scheduled ( gint scheduled_number,
-						   GDate *end_date );
+                        GDate *end_date );
 gboolean gsb_scheduler_list_change_scheduler_view ( enum scheduler_periodicity periodicity,
-						    gpointer item );
+                        gpointer item );
 GtkWidget *gsb_scheduler_list_create_list ( void );
 gboolean gsb_scheduler_list_delete_scheduled_transaction ( gint scheduled_number,
-							   gboolean show_warning );
+                        gboolean show_warning );
 gboolean gsb_scheduler_list_delete_scheduled_transaction_by_menu ( GtkWidget *button,
-								   gpointer null );
+                        gpointer null );
 gboolean gsb_scheduler_list_edit_transaction ( gint scheduled_number );
 gboolean gsb_scheduler_list_execute_transaction ( gint scheduled_number );
 gboolean gsb_scheduler_list_fill_list ( GtkWidget *tree_view );

Index: transaction_list.c
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/transaction_list.c,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -d -r1.43 -r1.44
--- transaction_list.c	17 Jun 2009 19:39:51 -0000	1.43
+++ transaction_list.c	5 Jul 2009 09:24:48 -0000	1.44
@@ -766,10 +766,9 @@
     gint i;
     CustomList *custom_list;
 
-    custom_list = transaction_model_get_model ();
-
     devel_debug (NULL);
 
+    custom_list = transaction_model_get_model ();
     g_return_if_fail ( custom_list != NULL );
 
     /* we erase the selection */



More information about the cvs mailing list