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

Pierre Biava pbiava at users.sourceforge.net
Sun Nov 15 22:42:34 CET 2009


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

Modified Files:
	affichage.c 
Log Message:
fix bug 733

Index: affichage.c
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/affichage.c,v
retrieving revision 1.169
retrieving revision 1.170
diff -u -d -r1.169 -r1.170
--- affichage.c	13 Nov 2009 20:11:31 -0000	1.169
+++ affichage.c	15 Nov 2009 21:42:32 -0000	1.170
@@ -54,6 +54,8 @@
 /*START_STATIC*/
 static gboolean change_choix_utilise_fonte_liste ( GtkWidget *check_button,
                         GtkWidget *vbox );
+static gboolean change_choix_utilise_logo ( GtkWidget *check_button,
+                        GtkWidget *hbox );
 static gboolean change_grisbi_title_type ( GtkRadioButton *button, GtkWidget *entry );
 static void change_logo_accueil ( GtkWidget * file_selector );
 static gboolean change_toolbar_display_mode ( GtkRadioButton *button );
@@ -149,6 +151,10 @@
 
     /*     le logo est grisé ou non suivant qu'on l'utilise ou pas */
     gtk_widget_set_sensitive ( hbox, etat.utilise_logo );
+    g_signal_connect ( G_OBJECT ( check_button ),
+                        "toggled",
+                        G_CALLBACK ( change_choix_utilise_logo ),
+                        hbox );
 
     logo_button = gtk_button_new ();
     gtk_button_set_relief ( GTK_BUTTON ( logo_button ), GTK_RELIEF_NONE );
@@ -265,7 +271,7 @@
 
 
 /* ********************************************************************** */
-/*gboolean change_choix_utilise_logo ( GtkWidget *check_button,
+gboolean change_choix_utilise_logo ( GtkWidget *check_button,
                         GtkWidget *hbox )
 {
 
@@ -275,13 +281,13 @@
 
     if ( etat.utilise_logo )
     {
-        /! 	on recharge l'ancien logo !/
+        /* 	on recharge l'ancien logo */
 
         if ( GTK_IS_WIDGET ( logo_accueil ) )
             gtk_widget_hide ( logo_accueil );
         else
         {
-            /! Update homepage logo !/
+            /* Update homepage logo */
             logo_accueil =  gtk_image_new_from_pixbuf ( 
                             gsb_select_icon_get_logo_pixbuf ( ) );
             gtk_box_pack_start ( GTK_BOX ( hbox_title ), logo_accueil, FALSE, FALSE, 0 );
@@ -296,7 +302,7 @@
         modification_fichier ( TRUE );
 
     return ( FALSE );
-}*/
+}
 /* ********************************************************************** */
 
 



More information about the cvs mailing list