[grisbi-cvs] grisbi/src affichage.c,1.168,1.169

Gunee guneemwelloeux at users.sourceforge.net
Fri Nov 13 21:11:33 CET 2009


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

Modified Files:
	affichage.c 
Log Message:
Fixed bad operation causing bug with GTK 2.18

Index: affichage.c
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/affichage.c,v
retrieving revision 1.168
retrieving revision 1.169
diff -u -d -r1.168 -r1.169
--- affichage.c	26 Oct 2009 22:38:21 -0000	1.168
+++ affichage.c	13 Nov 2009 20:11:31 -0000	1.169
@@ -488,9 +488,8 @@
         gchar * chemin_logo;
 
         gtk_container_remove (GTK_CONTAINER(logo_button), preview);
-        chemin_logo = my_strdup ( (gchar *) selected_filename );
-        if ( !chemin_logo ||
-             !strlen ( g_strstrip ( chemin_logo )) )
+        chemin_logo = g_strstrip ( g_strdup ( selected_filename ) );
+        if ( !strlen ( chemin_logo ) )
         {
             if ( logo_accueil && GTK_IS_WIDGET ( logo_accueil ))
                 gtk_widget_hide ( logo_accueil );
@@ -501,6 +500,7 @@
         {
             /* Update preview */
             pixbuf = gdk_pixbuf_new_from_file (chemin_logo, NULL);
+			g_free(chemin_logo);
             if (!pixbuf)
             {
                 if ( logo_accueil && GTK_IS_WIDGET ( logo_accueil ))



More information about the cvs mailing list