[Gtk-sharp-list] How to prevent custom dialog from initially showing up with main window?
Maciej Pilichowski
bluedzins at wp.pl
Sat May 1 11:43:39 EDT 2010
Hello,
Situation: I have main window and preferences dialog. I don't want
to create this dialog before each showing it up (please don't comment
on this) so I create it once in main window constructor and later I
only call Show() when I want to show it (and I don't destroy dialog
on close, only hide).
The problem: when I call Show() for main window, it is shown but the
dialog is also shown.
QUESTION: how to show only the main window (without dialog)?
Workaround which I found: in dialog constructor I immediately call
Hide(), so user gets only main window (intended) but with ugly blink
of dialog which shows up for a split of a second anyway.
Thanks for any help/links/tips/etc :-)
Cheers,
More information about the Gtk-sharp-list
mailing list