Re: g_object_notify meaning



"visible" is a property and this call notifies that the property has changed. It 
causes a "notify" signal to be emitted and you can write a signal handler which 
connect to the "notify" signal and thus be informed that a property has changed.

We make extensive use of it in Gnome Accessibility.

Padraig

> Delivered-To: gtk-devel-list gnome org
> X-Accept-Language: en
> MIME-Version: 1.0
> To: gtk-devel <gtk-devel-list gnome org>
> Subject: g_object_notify meaning
> Content-Transfer-Encoding: 7bit
> X-BeenThere: gtk-devel-list gnome org
> X-Loop: gtk-devel-list gnome org
> X-Mailman-Version: 2.0.5
> List-Help: <mailto:gtk-devel-list-request gnome org?subject=help>
> List-Post: <mailto:gtk-devel-list gnome org>
> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-devel-list>, 
<mailto:gtk-devel-list-request gnome org?subject=subscribe>
> List-Id: Development of GTK+ <gtk-devel-list.gnome.org>
> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-devel-list>, 
<mailto:gtk-devel-list-request gnome org?subject=unsubscribe>
> List-Archive: <http://mail.gnome.org/archives/gtk-devel-list/>
> 
> Hello,
> 
> I'd like to understand the following line which stand in
> gtk_widget_show/hide:
>       g_object_notify (G_OBJECT (widget), "visible");
> 
> Is 'visible' some signal (who is intrested in receiving it) ? Is that
> for GTK_VISIBLE flag delayed update ? If so, when will the update be
> done, why not changing the flag at this point ?
> 
>     Thanks,
> 
>         Philippe Ribet
> 
> 
> 
> _______________________________________________
> gtk-devel-list mailing list
> gtk-devel-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtk-devel-list





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