Hi Gus
On Wed, 26 Jan 2005 10:42:18 +0100, Gus Koppel <[EMAIL PROTECTED]> wrote: > Vinod Joseph wrote: > > > Sorry for the confusion > > Yes, I'm afraid your description was confusing to some people. $$$ Yes... i could not be explicit to discuss in clear > > > Anyways.....the major problem for design is with browsing password > > entries stored as "ASTERISK" in GtkList.. > > > > The problem is with password entry stored as ********* > > I don't understand this. You have a GtkList with a column which only > displays "**********"? Does that make sense? And you want to compare the > input of a GtkEntry (masked with "*"s as well I think) against any of > those rows? > $$$$ I have a column for password and obviously as name suggests..it cannot be displayed..I have solved this problem by having a duplicate entry private_password that does not have a column in the GtkList and i compare with this private_pwd entry... > Sorry, at this point I have just two, probably non-helpful hints for > you: 1. you should probably use strcmp () instead of memcmp (), as > possibly the size argument of your memcomp was incorrect. > > 2. if you write your loops not like this > > for ( i = 0; i <= my_list_store->len - 1 ; i++ ) > > but like this > > for ( i = 0; i < my_list_store->len ; i++ ) > > it's not only slightly shorter to write but also saves one or two > machine instructions, hence is (very slightly) faster and shorter. $$$ Yes..thank you. This code was initially i <= my_list_store->len and i was just trying out different options...Experimental code.. Anyways, thank you for the suggestions. I have obtained the correct output .. using goto statement.. just needed to avoid using goto ..... Thanks again Vinod _______________________________________________ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list