Re: Is GTK signal 'realized' similar to the Windows WM_INITDIALOG event message for dialogs?



David/Yeti,

Many thanks for the explanation.
Very useful.


--- On Sun, 6/6/10, David Nečas <yeti physics muni cz> wrote:

From: David Nečas <yeti physics muni cz>
Subject: Re: Is GTK signal 'realized' similar to the Windows WM_INITDIALOG event message for dialogs?
To: "Ken Resander" <kresander yahoo com>
Cc: gtk-list gnome org
Date: Sunday, 6 June, 2010, 10:12 PM

On Sun, Jun 06, 2010 at 06:56:52AM -0700, Ken Resander wrote:
> The WM_INITDIALOG message is emitted for a dialog when it is safe and
> possible to put data into the controls/widgets of the dialog, for
> example to put text into entry widgets and fill listviews, combos,
> toggle checkboxes etc. Would the following fragments work for GTK?

It would because it would work if you put the content there any other
time.  IOW it is a completely unecessary complication.

The "realized" signal is related to the creation of resources on the
X-server side, but this does not influence whether the widget objects
can hold the data or not.  It always can.  Sometimes you need the widget
to be realized, e.g. if you want to do something that depends on its
GdkScreen but that's something quite different.

Yeti




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]