Hello, I am a new user of GTK lib and I tried to implement a password field. Well, for my surprise the state of data "visible" from struct "entry" is not changed when I call gtk_entry_set_visibility. The example from tutorial implements the call for this function from a callback. Is there some about the functionality of this widget ( or all widgets or GTK ) that simply make this function doesn't work in my code ? The code that I made :
... wnd_princ = gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_widget_set_size_request (wnd_princ, 320, 160); gtk_window_set_title (GTK_WINDOW (wnd_princ), _("Logon Rede [EMAIL PROTECTED]")); gtk_window_set_position (GTK_WINDOW (wnd_princ), GTK_WIN_POS_CENTER); gtk_window_set_modal (GTK_WINDOW (wnd_princ), TRUE); gtk_window_set_resizable (GTK_WINDOW (wnd_princ), FALSE); gtk_window_set_destroy_with_parent (GTK_WINDOW (wnd_princ), TRUE); fixed1 = gtk_fixed_new (); gtk_widget_show (fixed1); gtk_container_add (GTK_CONTAINER (wnd_princ), fixed1); en_user = gtk_entry_new (); gtk_widget_show (en_user); gtk_fixed_put (GTK_FIXED (fixed1), en_user, 125, 14); gtk_widget_set_size_request (en_user, 186, 24); gtk_entry_set_max_length (GTK_ENTRY (en_user), 8); en_pass = gtk_entry_new (); gtk_widget_show (en_pass); gtk_fixed_put (GTK_FIXED (fixed1), en_pass, 125, 58); gtk_widget_set_size_request (en_pass, 186, 24); gtk_entry_set_max_length (GTK_ENTRY (en_pass), 256); gtk_entry_set_visibility (GTK_ENTRY (en_pass), FALSE); ... Thanks _______________________________________________________ Yahoo! Mail - Agora com 250MB de espaço gratuito. Abra uma conta agora! http://br.info.mail.yahoo.com/ _______________________________________________ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list