If Entry.Visibility is false Entry.Text is always empty

Bug #159666 reported by Celso Pinto
4
Affects Status Importance Assigned to Milestone
gtk-sharp2 (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

On a project I'm trying to create a password Gtk.Entry widget. If I set Entry.Visibility to false, Entry.Text and Entry.GetChars(0,-1) always return an empty string.

This must be a regression because it worked fine in 6.06 LTS.
libgtk2.0-cil version: 2.10.2-1ubuntu2

I'm filing this against gtk-sharp2 because I couldn't find the libgtk2.0-cil package.

Celso Pinto (cpinto)
description: updated
description: updated
Revision history for this message
Daniel T Chen (crimsun) wrote :

Is this symptom still reproducible in 8.10?

Changed in gtk-sharp2:
status: New → Incomplete
Revision history for this message
Pedro Villavicencio (pedro) wrote :

We are closing this bug report because it lacks the information we need to investigate the problem, as described in the previous comments. Please reopen it if you can give us the missing information, and don't hesitate to submit bug reports in the future. To reopen the bug report you can click on the current status, under the Status column, and change the Status back to New. Thanks again!.

Changed in gtk-sharp2:
status: Incomplete → Invalid
ss (stephan-pinkmatter)
Changed in gtk-sharp2 (Ubuntu):
status: Invalid → New
Revision history for this message
ss (stephan-pinkmatter) wrote :

Hi there, I believed I discovered the real reason behind this issue.

When a entry in a dialog is masked, and the dialog is destroyed, then the string containing the real text is cleared.

            string s = "";
            using (Dialog dialog = new Dialog("Bug report", null, DialogFlags.Modal, Stock.Ok, ResponseType.Ok)) {
                TokenRetrieverControl control = new TokenRetrieverControl();
                dialog.VBox.Add(control);
                dialog.ShowAll();
                s = control.Pin;
                dialog.Run();
                dialog.Destroy();
            }

            Console.WriteLine("String value =\""+s+"\"" ); // The string s is empty here :-(
            Console.ReadLine();

Revision history for this message
ss (stephan-pinkmatter) wrote :

I'm not sure that it is a bug though, I'm just saying that is one way this might happen....

Revision history for this message
ss (stephan-pinkmatter) wrote :

ok, I was being idiotic up there....please ignore.

Changed in gtk-sharp2 (Ubuntu):
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.