diff options
author | Mike Kestner <mkestner@ximian.com> | 2002-11-06 06:53:40 +0800 |
---|---|---|
committer | Mike Kestner <mkestner@src.gnome.org> | 2002-11-06 06:53:40 +0800 |
commit | 9b97a17eb728152cebe16d53d842c950a85b3505 (patch) | |
tree | 2ccddb671fdb7826e36a67b4e8b3bccebd7cb483 /widgets/table/e-table-header-item.c | |
parent | c7f67942ca864e5d158102eab7f26f6285a05b05 (diff) | |
download | gsoc2013-evolution-9b97a17eb728152cebe16d53d842c950a85b3505.tar.gz gsoc2013-evolution-9b97a17eb728152cebe16d53d842c950a85b3505.tar.zst gsoc2013-evolution-9b97a17eb728152cebe16d53d842c950a85b3505.zip |
GObjectify GObjectify GObjectify use GObject api for models use GObject
2002-11-05 Mike Kestner <mkestner@ximian.com>
* e-table-col.[ch] : GObjectify
* e-table-column-specification.[ch] : GObjectify
* e-table-config.[ch] : GObjectify
* e-table-group-leaf.c : use GObject api for models
* e-table-group.c : use GObject api for models
* e-table-header-item.c : use GObject api for models
* e-table-header.c : use GObject api for models
* e-table-selection-model.c : use GObject api for models
* e-table-sort-info.[ch] : GObjectify
* e-table-sorted.[ch] : GObjectify
* e-table-sorter.c : use GObject api for models
* e-table-specification.c : use GObject api for models
* e-table-state.[ch] : GObjectify
* e-table-subset-variable.[ch] : GObjectify
* e-table-subset.[ch] : GObjectify
* e-table.c : use GObject api for models
svn path=/trunk/; revision=18571
Diffstat (limited to 'widgets/table/e-table-header-item.c')
-rw-r--r-- | widgets/table/e-table-header-item.c | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/widgets/table/e-table-header-item.c b/widgets/table/e-table-header-item.c index b2d8cdde2a..0d2d7375a0 100644 --- a/widgets/table/e-table-header-item.c +++ b/widgets/table/e-table-header-item.c @@ -129,10 +129,10 @@ ethi_destroy (GtkObject *object){ if (ethi->sort_info) { if (ethi->sort_info_changed_id) - gtk_signal_disconnect (GTK_OBJECT(ethi->sort_info), ethi->sort_info_changed_id); + g_signal_handler_disconnect (G_OBJECT(ethi->sort_info), ethi->sort_info_changed_id); if (ethi->group_info_changed_id) - gtk_signal_disconnect (GTK_OBJECT(ethi->sort_info), ethi->group_info_changed_id); - gtk_object_unref (GTK_OBJECT(ethi->sort_info)); + g_signal_handler_disconnect (G_OBJECT(ethi->sort_info), ethi->group_info_changed_id); + g_object_unref (ethi->sort_info); ethi->sort_info = NULL; } @@ -141,7 +141,7 @@ ethi_destroy (GtkObject *object){ ethi->full_header = NULL; if (ethi->config) - gtk_object_destroy (GTK_OBJECT (ethi->config)); + g_object_unref (ethi->config); ethi->config = NULL; if (GTK_OBJECT_CLASS (ethi_parent_class)->destroy) @@ -325,10 +325,10 @@ ethi_set_arg (GtkObject *o, GtkArg *arg, guint arg_id) case ARG_FULL_HEADER: if (ethi->full_header) - g_object_unref(G_OBJECT(ethi->full_header)); + g_object_unref(ethi->full_header); ethi->full_header = E_TABLE_HEADER(GTK_VALUE_POINTER (*arg)); if (ethi->full_header) - g_object_ref(G_OBJECT(ethi->full_header)); + g_object_ref(ethi->full_header); break; case ARG_DND_CODE: @@ -343,26 +343,26 @@ ethi_set_arg (GtkObject *o, GtkArg *arg, guint arg_id) case ARG_SORT_INFO: if (ethi->sort_info){ if (ethi->sort_info_changed_id) - gtk_signal_disconnect ( - GTK_OBJECT(ethi->sort_info), + g_signal_handler_disconnect ( + G_OBJECT(ethi->sort_info), ethi->sort_info_changed_id); if (ethi->group_info_changed_id) - gtk_signal_disconnect ( - GTK_OBJECT(ethi->sort_info), + g_signal_handler_disconnect ( + G_OBJECT(ethi->sort_info), ethi->group_info_changed_id); - gtk_object_unref (GTK_OBJECT(ethi->sort_info)); + g_object_unref (G_OBJECT(ethi->sort_info)); } ethi->sort_info = GTK_VALUE_POINTER (*arg); - gtk_object_ref (GTK_OBJECT(ethi->sort_info)); + g_object_ref (ethi->sort_info); ethi->sort_info_changed_id = - gtk_signal_connect ( - GTK_OBJECT(ethi->sort_info), "sort_info_changed", - GTK_SIGNAL_FUNC(ethi_sort_info_changed), ethi); + g_signal_connect ( + G_OBJECT(ethi->sort_info), "sort_info_changed", + G_CALLBACK (ethi_sort_info_changed), ethi); ethi->group_info_changed_id = - gtk_signal_connect ( - GTK_OBJECT(ethi->sort_info), "group_info_changed", - GTK_SIGNAL_FUNC(ethi_sort_info_changed), ethi); + g_signal_connect ( + G_OBJECT(ethi->sort_info), "group_info_changed", + G_CALLBACK(ethi_sort_info_changed), ethi); break; case ARG_TABLE: if (GTK_VALUE_OBJECT(*arg)) @@ -696,14 +696,14 @@ context_destroyed (gpointer data) ethi->last_drop_context = NULL; scroll_off (ethi); - gtk_object_unref (GTK_OBJECT (ethi)); + g_object_unref (ethi); } static void context_connect (ETableHeaderItem *ethi, GdkDragContext *context) { if (g_dataset_get_data (context, "e-table-header-item") == NULL) { - gtk_object_ref (GTK_OBJECT (ethi)); + g_object_ref (ethi); g_dataset_set_data_full (context, "e-table-header-item", ethi, context_destroyed); } } @@ -1735,7 +1735,7 @@ ethi_class_init (GtkObjectClass *object_class) GTK_ARG_READWRITE, ARG_DND_CODE); gtk_object_add_arg_type ("ETableHeaderItem::fontset", GTK_TYPE_STRING, GTK_ARG_WRITABLE, ARG_TABLE_FONTSET); - gtk_object_add_arg_type ("ETableHeaderItem::sort_info", GTK_TYPE_OBJECT, + gtk_object_add_arg_type ("ETableHeaderItem::sort_info", G_TYPE_OBJECT, GTK_ARG_WRITABLE, ARG_SORT_INFO); gtk_object_add_arg_type ("ETableHeaderItem::table", GTK_TYPE_OBJECT, GTK_ARG_WRITABLE, ARG_TABLE); |