[ubuntu-mono] [Bug 159666] Re: If Entry.Visibility is false Entry.Text is always empty

ss stephan at pinkmatter.co.za
Fri Jul 24 13:50:54 BST 2009


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();

** Attachment added: "visual studio project"
   http://launchpadlibrarian.net/29481970/LittleBugReport.zip

-- 
If Entry.Visibility is false Entry.Text is always empty
https://bugs.launchpad.net/bugs/159666
You received this bug notification because you are a member of MOTU Mono
Team, which is subscribed to gtk-sharp2 in ubuntu.



More information about the Ubuntu-mono mailing list