Mercurial > pidgin
diff src/gtkimhtml.c @ 4635:42d53c416bb9
[gaim-migrate @ 4942]
remove deprecated gtk calls, gtk2-ify log viewer, gtk2-ify jabber vcard
dialog, and probably a cleanup or two I forgot about.
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Sun, 02 Mar 2003 19:21:36 +0000 |
parents | 5cdfd20daa07 |
children | 66c2388046fb |
line wrap: on
line diff
--- a/src/gtkimhtml.c Sun Mar 02 18:48:02 2003 +0000 +++ b/src/gtkimhtml.c Sun Mar 02 19:21:36 2003 +0000 @@ -217,25 +217,28 @@ GtkWidget *gtk_imhtml_new(void *a, void *b) { - return GTK_WIDGET(gtk_type_new(gtk_imhtml_get_type())); + return GTK_WIDGET(g_object_new(gtk_imhtml_get_type(), NULL)); } -GtkType gtk_imhtml_get_type() +GType gtk_imhtml_get_type() { - static guint imhtml_type = 0; + static GType imhtml_type = 0; if (!imhtml_type) { - GtkTypeInfo imhtml_info = { - "GtkIMHtml", + static const GTypeInfo imhtml_info = { + sizeof(GtkIMHtmlClass), + NULL, + NULL, + (GClassInitFunc) gtk_imhtml_class_init, + NULL, + NULL, sizeof (GtkIMHtml), - sizeof (GtkIMHtmlClass), - (GtkClassInitFunc) gtk_imhtml_class_init, - (GtkObjectInitFunc) gtk_imhtml_init, - NULL, - NULL + 0, + (GInstanceInitFunc) gtk_imhtml_init }; - - imhtml_type = gtk_type_unique (gtk_text_view_get_type (), &imhtml_info); + + imhtml_type = g_type_register_static(gtk_text_view_get_type(), + "GtkIMHtml", &imhtml_info, 0); } return imhtml_type;