[grisbi-cvs] [SCM] grisbi branch, master, updated. f29ee0a471e631011a17c4042df0ab639c098f12

Gunee nobody at users.sourceforge.net
Sat Jun 19 00:17:34 CEST 2010


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  f29ee0a471e631011a17c4042df0ab639c098f12 (commit)
       via  929d2fa98205409304f4cbe9ae18951c031da1fa (commit)
       via  227623c321e9f623696fed7735bb334a3ea14546 (commit)
       via  e54b3264da6646395383ee3ef26aa56d89cde3c0 (commit)
      from  d6c7ac09280492e65d73e15a9dbb0809d4278755 (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 f29ee0a471e631011a17c4042df0ab639c098f12
Author: William OLLIVIER <guneemwelloeux at users.sourceforge.net>
Date:   Sat Jun 19 00:16:10 2010 +0200

    Changed calls to deprecated function g_date_set_time()

commit 929d2fa98205409304f4cbe9ae18951c031da1fa
Author: William OLLIVIER <guneemwelloeux at users.sourceforge.net>
Date:   Sat Jun 19 00:13:41 2010 +0200

    Casting function pointers to GCallback's (Removes warnings with MSVC)

commit 227623c321e9f623696fed7735bb334a3ea14546
Author: William OLLIVIER <guneemwelloeux at users.sourceforge.net>
Date:   Sat Jun 19 00:11:58 2010 +0200

    Fixed deprecation of POSIX symbols with MSVC

commit e54b3264da6646395383ee3ef26aa56d89cde3c0
Author: William OLLIVIER <guneemwelloeux at users.sourceforge.net>
Date:   Fri Jun 18 23:56:16 2010 +0200

    MSVC build: Added generation events for tips .mo files

-----------------------------------------------------------------------

Changes:
diff --git a/src/etats_calculs.c b/src/etats_calculs.c
index 75ed1e3..ed752ee 100644
--- a/src/etats_calculs.c
+++ b/src/etats_calculs.c
@@ -725,7 +725,7 @@ GSList *recupere_opes_etat ( gint report_number )
 			GDate *date_tmp;
 
 			date_jour = g_date_new ();
-			g_date_set_time ( date_jour,
+			g_date_set_time_t ( date_jour,
 					  time ( NULL ));
 
 
diff --git a/src/etats_csv.c b/src/etats_csv.c
index 3cdde82..4d98c3d 100644
--- a/src/etats_csv.c
+++ b/src/etats_csv.c
@@ -155,7 +155,7 @@ gint csv_initialise (GSList * opes_selectionnees, gchar * filename )
     csv_lastcol = 0;
     csv_lastline = 1;
 
-    unlink ( filename );	/* We don't care if this fails, this
+    g_unlink ( filename );	/* We don't care if this fails, this
 				 * is just to guarantee next will
 				 * not fail if file is existing.  This
 				 * will help against file races. */
diff --git a/src/etats_latex.c b/src/etats_latex.c
index c7020b9..286b14a 100644
--- a/src/etats_latex.c
+++ b/src/etats_latex.c
@@ -270,7 +270,7 @@ gint latex_initialise (GSList * opes_selectionnees, gchar * filename )
 	filename = "";
     }
 
-    unlink ( filename );
+    g_unlink ( filename );
     file_out = utf8_fopen ( filename, "w" );
     if ( ! file_out )
     {
@@ -374,9 +374,9 @@ gint latex_finish ()
                         (etat.print_config.printer ?
                          (g_strconcat ( tempname, ".ps", NULL )) :
                          etat.print_config.printer_filename) );
-            unlink ( g_strdup_printf ("%s.tex", tempname) );
-            unlink ( g_strdup_printf ("%s.aux", tempname) );
-            unlink ( g_strdup_printf ("%s.log", tempname) );
+            g_unlink ( g_strdup_printf ("%s.tex", tempname) );
+            g_unlink ( g_strdup_printf ("%s.aux", tempname) );
+            g_unlink ( g_strdup_printf ("%s.log", tempname) );
             if ( !system ( command ) )
             {
             if ( etat.print_config.printer )
@@ -393,12 +393,12 @@ gint latex_finish ()
             {
             dialogue_error ( _("dvips was unable to complete, see console output for details.") );
             }
-            unlink ( g_strdup_printf ("%s.dvi", tempname) );
+            g_unlink ( g_strdup_printf ("%s.dvi", tempname) );
 	}
 
 	if ( etat.print_config.printer )
 	{
-	    unlink ( g_strdup_printf ("%s.ps", tempname) );
+	    g_unlink ( g_strdup_printf ("%s.ps", tempname) );
 	}
 
 	g_free ( tempname );
diff --git a/src/etats_support.c b/src/etats_support.c
index c5bf1bf..d97e5a8 100644
--- a/src/etats_support.c
+++ b/src/etats_support.c
@@ -281,7 +281,7 @@ gchar *etats_titre ( gint report_number)
 		/* 30 derniers jours */
 
 		date_tmp = g_date_new ();
-		g_date_set_time ( date_tmp,
+		g_date_set_time_t ( date_tmp,
 				  time ( NULL ));
 
 		g_date_subtract_days ( date_tmp,
@@ -299,7 +299,7 @@ gchar *etats_titre ( gint report_number)
 		/* 3 derniers mois */
 
 		date_tmp = g_date_new ();
-		g_date_set_time ( date_tmp,
+		g_date_set_time_t ( date_tmp,
 				  time ( NULL ));
 		g_date_subtract_months ( date_tmp,
 					 3 );
@@ -328,7 +328,7 @@ gchar *etats_titre ( gint report_number)
 		/* 6 derniers mois */
 
 		date_tmp = g_date_new ();
-		g_date_set_time ( date_tmp,
+		g_date_set_time_t ( date_tmp,
 				  time ( NULL ));
 		g_date_subtract_months ( date_tmp,
 					 6 );
@@ -358,7 +358,7 @@ gchar *etats_titre ( gint report_number)
 		/* 12 derniers mois */
 
 		date_tmp = g_date_new ();
-		g_date_set_time ( date_tmp,
+		g_date_set_time_t ( date_tmp,
 				  time ( NULL ));
 		g_date_subtract_months ( date_tmp,
 					 12 );
diff --git a/src/gsb_transactions_list.c b/src/gsb_transactions_list.c
index 3e2a22c..8594ee6 100644
--- a/src/gsb_transactions_list.c
+++ b/src/gsb_transactions_list.c
@@ -2175,7 +2175,7 @@ void popup_transaction_context_menu ( gboolean full, int x, int y )
     gtk_image_menu_item_set_image ( GTK_IMAGE_MENU_ITEM(menu_item),
 				    gtk_image_new_from_stock ( GTK_STOCK_DELETE,
 							       GTK_ICON_SIZE_MENU ));
-    g_signal_connect ( G_OBJECT(menu_item), "activate", remove_transaction, NULL );
+    g_signal_connect ( G_OBJECT(menu_item), "activate", G_CALLBACK(remove_transaction), NULL );
     if ( !full
 	 ||
 	 gsb_data_transaction_get_marked_transaction (transaction_number) == OPERATION_RAPPROCHEE
@@ -2212,7 +2212,7 @@ void popup_transaction_context_menu ( gboolean full, int x, int y )
     gtk_image_menu_item_set_image ( GTK_IMAGE_MENU_ITEM(menu_item),
 				    gtk_image_new_from_stock ( GTK_STOCK_CONVERT,
 							       GTK_ICON_SIZE_MENU ));
-    g_signal_connect ( G_OBJECT(menu_item), "activate", schedule_selected_transaction, NULL );
+    g_signal_connect ( G_OBJECT(menu_item), "activate", G_CALLBACK(schedule_selected_transaction), NULL );
     gtk_widget_set_sensitive ( menu_item, full && mi_full );
     gtk_menu_shell_append ( GTK_MENU_SHELL ( menu ), menu_item );
 
diff --git a/win32-msvc/CMakeLists.txt b/win32-msvc/CMakeLists.txt
index a688be6..9266926 100644
--- a/win32-msvc/CMakeLists.txt
+++ b/win32-msvc/CMakeLists.txt
@@ -537,6 +537,13 @@ set(
   ../po/zh_CN.po
 ) 
 
+set (
+  tips_po_files
+  ../help/tips/de.po
+  ../help/tips/es.po
+  ../help/tips/fr.po
+)
+
 set (msgfmt msgfmt.exe)
 
 ADD_CUSTOM_TARGET(prepare_mo
@@ -567,6 +574,29 @@ foreach (current_po ${po_files})
   )
  endforeach (current_po)
  
+ foreach (current_po ${tips_po_files})
+  get_filename_component(
+    lang
+    ${current_po}
+    NAME_WE
+  )
+  
+  set(mo_file target\\lib\\locale\\${lang}\\LC_MESSAGES\\${PACKAGE_NAME}-tips.mo)
+  
+  add_custom_command(TARGET prepare_mo
+    POST_BUILD
+	COMMAND IF NOT EXIST target\\lib\\locale\\${lang} mkdir target\\lib\\locale\\${lang}
+	COMMAND IF NOT EXIST target\\lib\\locale\\${lang}\\LC_MESSAGES mkdir target\\lib\\locale\\${lang}\\LC_MESSAGES
+  )
+	
+  add_custom_command(TARGET prepare_mo
+	POST_BUILD
+    # OUTPUT ${mo_file}
+    COMMAND ${msgfmt} -c ${current_po} -o ${mo_file}
+    DEPENDS ${current_po}
+  )
+ endforeach (current_po)
+ 
  add_custom_command(TARGET prepare_mo
 	POST_BUILD
 	COMMAND IF NOT EXIST target\\$(PlatformName)\\$(ConfigurationName)\\lib mkdir target\\$(PlatformName)\\$(ConfigurationName)\\lib


hooks/post-receive
-- 
grisbi


More information about the cvs mailing list