Thank you Bob This works much better than my code that took strlen(new_text) and did for (loop with strlen) *(my_text + 1) = '*';
and i print my_text into the GtkList. It was not the last character but weird behavior like boxes with 0s for some inputs. I tried others including strncat but they did not work efficiently for all type of inputs... Thanks again for your very efficient and clear solution to the problem... Also, please could you guide me if you have come across a good solution to effectively compare a GtkEntry to the entries in the GtkList. Thanks in advance.. Vinod On Mon, 24 Jan 2005 10:12:29 -0600, Bob Caryl <[EMAIL PROTECTED]> wrote: > I am guessing that the last character of the password > is not masked, right? > > I am assuming that "new_text" is always going to be a > null terminated c-style string. If it is not, > strlen is going to have a tough time. > > The code to replace password characters should probably read: > > gchar *my_text; > > my_text = g_strnfill(strlen(new_text),'*'); > > After you insert the my_text string into the GtkListStore, > be sure to delete it. > > Best regards, > Bob Caryl > > On Sun, 2005-01-23 at 20:38, Vinod Joseph wrote: > > Dear All > > > > Let me illustrate the problem in specific... > > > > I get segmentation fault on masking invisible > > characters......Sometimes strange characters are printed... > > > > my code to print invisible chars is just > > > > for (i=0; i<(strlen(new_text)-1); i++) > > { > > *(my_text + i)='*'; > > } > > > > now..i append my_text to the list view for GtkListStore..... > > This prints * for password entry there.... > > > > However...Firstly, dosent work as needed always...... > > > > Secondly, seg faults on backspace..sometimes...I think this is related > > to the character encoding.... > > > > > > Also, Another GtkEntry seg faults on backspace in some cases.... > > > > How do i write code to correct this fault in my system.... > > > > Please guide me > > > > thanks > > > > Vinod > > > > > > On Sat, 22 Jan 2005 16:51:46 +0900, Vinod Joseph <[EMAIL PROTECTED]> wrote: > > > Dear All > > > > > > How do i mask the characters of a GtkListStore entry to be invisible > > > and play around with the list entries based on the EditableCells > > > example in Gtk 2.2.2 > > > > > > Please help me with some examples..... > > > > > > Thank you for your help > > > > > > Vinod > > > > > _______________________________________________ > > gtk-app-devel-list mailing list > > gtk-app-devel-list@gnome.org > > http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list > > _______________________________________________ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list