[webkit-help] grep -r webkit_web_view_get_type .
Bharathwaaj S
bluegenetic at gmail.com
Wed Mar 17 04:28:04 PDT 2010
Hi,
Generated code hacked from G_DEFINE_TYPE help manual!
*Reference:*
G_DEFINE_TYPE(WebKitWebView, webkit_web_view,
GTK_TYPE_CONTAINER)
#define G_DEFINE_TYPE(TN, t_n, T_P) G_DEFINE_TYPE_EXTENDED (TN,
t_n, T_P, 0,
{})
#define G_DEFINE_TYPE_EXTENDED(TN, t_n, T_P, _f_, _C_)
_G_DEFINE_TYPE_EXTENDED_BEGIN (TN, t_n, T_P, _f_) {_C_;}
_G_DEFINE_TYPE_EXTENDED_END()
G_DEFINE_TYPE_EXTENDED
(WebKitWebView,
webkit_web_view,
GTK_TYPE_CONTAINER,
0,
{});
*Code:*
static void webkit_web_view_init (WebKitWebView
*self);
static void webkit_web_view_class_init (WebKitWebViewClass
*klass);
static gpointer webkit_web_view_parent_class =
NULL;
static void webkit_web_view_class_intern_init (gpointer
klass)
{
webkit_web_view_parent_class = g_type_class_peek_parent
(klass);
webkit_web_view_class_init ((WebKitWebViewClass*)
klass);
}
GType
webkit_web_view_get_type
(void)
{
static volatile gsize g_define_type_id__volatile =
0;
if (g_once_init_enter
(&g_define_type_id__volatile))
{
GType g_define_type_id
=
g_type_register_static_simple
(GTK_TYPE_CONTAINER,
g_intern_static_string
("WebKitWebView"),
sizeof
(WebKitWebViewClass),
(GClassInitFunc)
webkit_web_view_class_intern_init,
sizeof
(WebKitWebView),
(GInstanceInitFunc)
webkit_web_view_init,
(GTypeFlags)
0);
{
{
}
}
g_once_init_leave (&g_define_type_id__volatile,
g_define_type_id);
}
return
g_define_type_id__volatile;
}
Returns a GType which is nothing but an unique identifier.
Kind regards,
Bharath
http://amusingsilhouettes.blogspot.com
On Wed, Mar 17, 2010 at 12:03 AM, n179911 <n179911 at gmail.com> wrote:
> Thank you. Can you please tell me how can I find the generated code?
> What does it return ? I think it returns an integer. But I am not sure
> what does that integer means or what are the valid values?
>
>
>
> On Mon, Mar 15, 2010 at 10:42 PM, zaheer ahmad <zaheer.mot at gmail.com>
> wrote:
> > Its generated by the macro
> > G_DEFINE_TYPE(WebKitWebView, webkit_web_view, GTK_TYPE_CONTAINER)
> > On Tue, Mar 16, 2010 at 7:59 AM, n179911 <n179911 at gmail.com> wrote:
> >>
> >> Hi,
> >>
> >> Can you please tell me where is webkit_web_view_get_type() being
> >> implemented. I have searched for in the source tree. I can only find:
> >> webkit_web_view_get_type
> >> ./WebKit/gtk/webkit/webkitwebview.h:#define WEBKIT_TYPE_WEB_VIEW
> >> (webkit_web_view_get_type())
> >>
> >> But I can't find anywhere which it is being implemented:
> >> Here is how I grep for it:
> >> grep -r webkit_web_view_get_type .
> >>
> >> Thank you in advance for any help.
> >> _______________________________________________
> >> webkit-help mailing list
> >> webkit-help at lists.webkit.org
> >> http://lists.webkit.org/mailman/listinfo.cgi/webkit-help
> >
> >
> _______________________________________________
> webkit-help mailing list
> webkit-help at lists.webkit.org
> http://lists.webkit.org/mailman/listinfo.cgi/webkit-help
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-help/attachments/20100317/39e9b589/attachment.html>
More information about the webkit-help
mailing list