aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui/widgets/e-minicard-widget.c
diff options
context:
space:
mode:
authorChris Toshok <toshok@ximian.com>2002-11-07 12:45:26 +0800
committerChris Toshok <toshok@src.gnome.org>2002-11-07 12:45:26 +0800
commitdaf38bc8b0643edaf1629f7767ddb3051821d000 (patch)
tree8117feb14ddfc3301f9f7c4f240e68c99d82e421 /addressbook/gui/widgets/e-minicard-widget.c
parentf1bf0afda992d969be86bfe29c464a8c435dcebf (diff)
downloadgsoc2013-evolution-daf38bc8b0643edaf1629f7767ddb3051821d000.tar.gz
gsoc2013-evolution-daf38bc8b0643edaf1629f7767ddb3051821d000.tar.zst
gsoc2013-evolution-daf38bc8b0643edaf1629f7767ddb3051821d000.zip
gobjectify this.
2002-11-06 Chris Toshok <toshok@ximian.com> * gui/widgets/gal-view-minicard.[ch]: gobjectify this. * gui/widgets/e-minicard.[ch]: gobjectify this. (e_minicard_class_init): change the min/max values of the width/height paramspecs so that they can actually be set to something other than 0.0. * gui/widgets/e-minicard-widget.[ch]: gobjectify this. * gui/widgets/e-minicard-view.[ch]: gobjectify this. (set_empty_message): don't need e_utf8_from_locale_string anymore. * gui/widgets/e-minicard-view-widget.[ch]: gobjectify this. * gui/widgets/e-minicard-label.[ch]: gobjectify this. * gui/widgets/e-addressbook-view.[ch]: gobjectify this. * gui/widgets/e-addressbook-table-adapter.[ch]: gobjectify this. * gui/widgets/e-addressbook-reflow-adapter.[ch]: gobjectify this. * gui/widgets/e-addressbook-model.[ch]: gobjectify this. * gui/widgets/e-minicard-control.c (e_minicard_control_factory): fix bonobo_persist_stream_new api change. * gui/contact-list-editor/e-contact-list-model.c (e_contact_list_model_add_destination): get rid of the gtk_object_sink here. * gui/component/ldap-config.glade: glade-2 version of this file. * gui/component/e-address-popup.c (e_address_popup_refresh_names): don't need e_utf8_to_gtk_string anymore. * gui/component/addressbook.c (make_suboptions): don't need e_utf8_to_locale_string anymore. * gui/component/addressbook-config.c (addressbook_dialog_get_source): get rid of the e_utf8 gtk_entry functions. (addressbook_source_dialog_set_source): same. (general_tab_check): same. (port_changed_func): same. (connecting_tab_check): same. (query_for_supported_bases): same. (display_name_check): same. (display_name_page_prepare): same. (edit_source_clicked): same. (addressbook_config_create_new_source): same. svn path=/trunk/; revision=18626
Diffstat (limited to 'addressbook/gui/widgets/e-minicard-widget.c')
-rw-r--r--addressbook/gui/widgets/e-minicard-widget.c39
1 files changed, 19 insertions, 20 deletions
diff --git a/addressbook/gui/widgets/e-minicard-widget.c b/addressbook/gui/widgets/e-minicard-widget.c
index 4c9d7b0f30..a82dae4ca0 100644
--- a/addressbook/gui/widgets/e-minicard-widget.c
+++ b/addressbook/gui/widgets/e-minicard-widget.c
@@ -41,27 +41,26 @@ enum {
ARG_CARD,
};
-GtkType
+GType
e_minicard_widget_get_type (void)
{
- static GtkType type = 0;
-
- if (!type)
- {
- static const GtkTypeInfo info =
- {
- "EMinicardWidget",
- sizeof (EMinicardWidget),
- sizeof (EMinicardWidgetClass),
- (GtkClassInitFunc) e_minicard_widget_class_init,
- (GtkObjectInitFunc) e_minicard_widget_init,
- /* reserved_1 */ NULL,
- /* reserved_2 */ NULL,
- (GtkClassInitFunc) NULL,
- };
-
- type = gtk_type_unique (e_canvas_get_type (), &info);
- }
+ static GType type = 0;
+
+ if (!type) {
+ static const GTypeInfo info = {
+ sizeof (EMinicardWidgetClass),
+ NULL, /* base_init */
+ NULL, /* base_finalize */
+ (GClassInitFunc) e_minicard_widget_class_init,
+ NULL, /* class_finalize */
+ NULL, /* class_data */
+ sizeof (EMinicardWidget),
+ 0, /* n_preallocs */
+ (GInstanceInitFunc) e_minicard_widget_init,
+ };
+
+ type = g_type_register_static (e_canvas_get_type (), "EMinicardWidget", &info, 0);
+ }
return type;
}
@@ -187,7 +186,7 @@ e_minicard_widget_destroy (GtkObject *object)
GtkWidget*
e_minicard_widget_new (void)
{
- GtkWidget *widget = GTK_WIDGET (gtk_type_new (e_minicard_widget_get_type ()));
+ GtkWidget *widget = GTK_WIDGET (g_object_new (E_TYPE_MINICARD_WIDGET, NULL));
return widget;
}