[grisbi-cvs] grisbi/src gsb_file_others.c, 1.26, 1.27 gsb_file_util.c, 1.40, 1.41 gsb_form.c, 1.129, 1.130 gsb_form_config.c, 1.32, 1.33

Mickaƫl Remars mykeul at users.sourceforge.net
Mon Aug 24 16:03:05 CEST 2009


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

Modified Files:
	gsb_file_others.c gsb_file_util.c gsb_form.c gsb_form_config.c 
Log Message:
msvc needs all variable declarations at the begining of the blocs (C99)

Index: gsb_file_others.c
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/gsb_file_others.c,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -d -r1.26 -r1.27
--- gsb_file_others.c	12 Jun 2009 19:06:56 -0000	1.26
+++ gsb_file_others.c	24 Aug 2009 14:03:03 -0000	1.27
@@ -332,6 +332,7 @@
 					   gchar **file_content,
 					   gchar *version )
 {
+	gulong result;
     gchar *new_string;
 
     /* save the general informations */
@@ -345,7 +346,7 @@
     /* append the new string to the file content
      * and return the new iterator */
 
-    gulong result = gsb_file_save_append_part ( iterator,
+    result = gsb_file_save_append_part ( iterator,
 						length_calculated,
 						file_content,
 						new_string );

Index: gsb_form_config.c
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/gsb_form_config.c,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -d -r1.32 -r1.33
--- gsb_form_config.c	23 Aug 2009 16:45:05 -0000	1.32
+++ gsb_form_config.c	24 Aug 2009 14:03:03 -0000	1.33
@@ -147,6 +147,7 @@
     GtkWidget *button;
     GtkWidget *paddingbox;
     GtkWidget *label;
+	GtkListStore* list_store;
 
     /* create the paddingbox into the parent */
     paddingbox = new_paddingbox_with_title ( vbox_parent, TRUE, _("Form structure preview"));
@@ -191,7 +192,7 @@
     gtk_box_pack_start ( GTK_BOX ( paddingbox), sw, TRUE, TRUE, 0 );
 
     /* create the tree_view */
-    GtkListStore* list_store = gsb_form_config_create_store ();
+    list_store = gsb_form_config_create_store ();
     form_config_tree_view = gsb_form_config_create_tree_view (list_store);
     g_object_unref (G_OBJECT(list_store));
     gtk_scrolled_window_add_with_viewport ( GTK_SCROLLED_WINDOW ( sw ),

Index: gsb_form.c
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/gsb_form.c,v
retrieving revision 1.129
retrieving revision 1.130
diff -u -d -r1.129 -r1.130
--- gsb_form.c	23 Jul 2009 19:14:51 -0000	1.129
+++ gsb_form.c	24 Aug 2009 14:03:03 -0000	1.130
@@ -207,6 +207,7 @@
     GtkWidget * hbox, * label, * separator, * hbox_buttons, * hbox_buttons_inner;
     GtkWidget * child = gtk_bin_get_child ( GTK_BIN(form_expander) );
     GtkWidget *event_box;
+	gchar* tmpstr;
 
     devel_debug (NULL);
 
@@ -222,7 +223,7 @@
 
     /* set the label transaction form */
     label = gtk_label_new ( NULL );
-    gchar* tmpstr = g_strconcat ( "<span weight=\"bold\">", 
+    tmpstr = g_strconcat ( "<span weight=\"bold\">", 
                                 _("Transaction/Scheduled _form"),
                                 "</span>", NULL );
     gtk_label_set_markup_with_mnemonic ( GTK_LABEL ( label ), tmpstr );

Index: gsb_file_util.c
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/gsb_file_util.c,v
retrieving revision 1.40
retrieving revision 1.41
diff -u -d -r1.40 -r1.41
--- gsb_file_util.c	6 Jun 2009 15:03:06 -0000	1.40
+++ gsb_file_util.c	24 Aug 2009 14:03:03 -0000	1.41
@@ -56,6 +56,9 @@
  * */
 gboolean gsb_file_util_test_overwrite ( const gchar *filename )
 {
+	gchar* tmpstr;
+	gboolean response;
+
     if (!filename
 	||
 	!strlen (filename))
@@ -78,8 +81,8 @@
 	    return FALSE;
 	}
 	
-	gchar* tmpstr = g_strdup_printf (_("Do you want to overwrite file \"%s\"?"), filename);
-	gboolean response = question_yes_no_hint (_("File already exists"),
+	tmpstr = g_strdup_printf (_("Do you want to overwrite file \"%s\"?"), filename);
+	response = question_yes_no_hint (_("File already exists"),
 				       tmpstr,
 				       GTK_RESPONSE_NO );
 	g_free ( tmpstr );



More information about the cvs mailing list