Re: Adding g_object_get_type?
- From: Darin Adler <darin bentspoon com>
- To: Sven Neumann <sven gimp org>
- Cc: Gtk Developers <gtk-devel-list gnome org>
- Subject: Re: Adding g_object_get_type?
- Date: Fri, 09 Nov 2001 08:11:07 -0800
on 11/9/01 4:23 AM, Sven Neumann at sven gimp org wrote:
> because it's already there?
>
> #define G_TYPE_FROM_INSTANCE(instance) (G_TYPE_FROM_CLASS (((GTypeInstance*)
> (instance))->g_class))
>
> #define G_OBJECT_TYPE(object) (G_TYPE_FROM_INSTANCE (object))
You misunderstand me. Not "get the type of a GObject".
But rather, get the GType value for GObject. As in g_io_channel_get_type (),
gtk_widget_get_type (), etc. The implementation would be a function that
returns the constant G_TYPE_OBJECT.
-- Darin
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]