[grisbi-cvs] [SCM] grisbi branch, master, updated. upstream_version_0_9_1-20-g95c6422

Philippe Delorme nobody at users.sourceforge.net
Sun May 1 19:10:01 CEST 2011


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  95c642263de65e61c92b2dbaee22912b6c688e4c (commit)
      from  5b78669fc8bfd58eeb2fba4b9b69bc61bb3ea2c7 (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 95c642263de65e61c92b2dbaee22912b6c688e4c
Author: Philippe Delorme <philippedelorme at users.sourceforge.net>
Date:   Sun May 1 12:15:17 2011 +0200

    Minor changes (get_gtk_run_version)

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

Changes:
diff --git a/src/utils.c b/src/utils.c
index d8ed22a..b28a0ab 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -36,7 +36,6 @@
 #include "gsb_data_account.h"
 #include "gsb_file_config.h"
 #include "structures.h"
-#include "utils_str.h"
 #include "erreur.h"
 #include "gsb_dirs.h"
 /*END_INCLUDE*/
@@ -492,18 +491,23 @@ gboolean radio_set_active_linked_widgets ( GtkWidget *widget )
     return FALSE;
 }
 
+
 /**
- *  Cette fonction renvoie une string de la version de GTK
+ * Get the string of the running GTK version.
+ * Must be freed when no longer used
+ *
+ * \return string
  */
 gchar *get_gtk_run_version ( void )
 {
-	gchar *version = NULL;
+    gchar *version = NULL;
+
+    version = g_strdup_printf ( "%d.%d.%d",
+                                gtk_major_version,
+                                gtk_minor_version,
+                                gtk_micro_version );
 
-   	version = g_strconcat( utils_str_itoa ( (guint) gtk_major_version ), ".",
-                        utils_str_itoa ( (guint) gtk_minor_version ), ".", 
-                        utils_str_itoa ( (guint) gtk_micro_version ),
-                        NULL);
-	return version;
+    return version;
 }
 
 


hooks/post-receive
-- 
grisbi


More information about the cvs mailing list