[grisbi-cvs] grisbi/src gtk_combofix.c,1.69,1.70

Pierre Biava pbiava at users.sourceforge.net
Thu Feb 4 21:59:42 CET 2010


Update of /cvsroot/grisbi/grisbi/src
In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv6478

Modified Files:
	gtk_combofix.c 
Log Message:
fixed bug 929

Index: gtk_combofix.c
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/gtk_combofix.c,v
retrieving revision 1.69
retrieving revision 1.70
diff -u -d -r1.69 -r1.70
--- gtk_combofix.c	30 Jan 2010 17:04:12 -0000	1.69
+++ gtk_combofix.c	4 Feb 2010 20:59:38 -0000	1.70
@@ -243,6 +243,7 @@
         gsb_form_widget_set_empty ( GTK_WIDGET ( combofix -> entry ), TRUE );
         gtk_entry_set_text ( GTK_ENTRY ( combofix -> entry ),
 					    _("Categories : Sub-categories") );
+        gtk_editable_select_region ( GTK_EDITABLE (combofix -> entry), 0, -1 );
     }
     g_signal_handlers_unblock_by_func ( G_OBJECT (combofix -> entry),
 					G_CALLBACK (gtk_combofix_entry_insert),
@@ -719,8 +720,7 @@
  * */
 static gboolean gtk_combofix_entry_delete ( GtkComboFix *combofix )
 {
-    return gtk_combofix_entry_changed ( combofix,
-					FALSE );
+    return gtk_combofix_entry_changed ( combofix, FALSE );
 }
 
 
@@ -748,8 +748,11 @@
     gtk_editable_delete_selection ( GTK_EDITABLE (combofix -> entry));
 
     if ( strlen ( entry_string ) )
+    {
+        gsb_form_widget_set_empty ( combofix -> entry, FALSE );
 	    completed_string = gtk_combofix_update_visible_rows ( combofix,
 							      entry_string);
+    }
     else
 	    gtk_combofix_set_all_visible_rows (combofix);
 



More information about the cvs mailing list