aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-table-header.c
diff options
context:
space:
mode:
authorMike Kestner <mkestner@ximian.com>2002-11-06 06:53:40 +0800
committerMike Kestner <mkestner@src.gnome.org>2002-11-06 06:53:40 +0800
commit9b97a17eb728152cebe16d53d842c950a85b3505 (patch)
tree2ccddb671fdb7826e36a67b4e8b3bccebd7cb483 /widgets/table/e-table-header.c
parentc7f67942ca864e5d158102eab7f26f6285a05b05 (diff)
downloadgsoc2013-evolution-9b97a17eb728152cebe16d53d842c950a85b3505.tar
gsoc2013-evolution-9b97a17eb728152cebe16d53d842c950a85b3505.tar.gz
gsoc2013-evolution-9b97a17eb728152cebe16d53d842c950a85b3505.tar.bz2
gsoc2013-evolution-9b97a17eb728152cebe16d53d842c950a85b3505.tar.lz
gsoc2013-evolution-9b97a17eb728152cebe16d53d842c950a85b3505.tar.xz
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.c')
-rw-r--r--widgets/table/e-table-header.c19
1 files changed, 9 insertions, 10 deletions
diff --git a/widgets/table/e-table-header.c b/widgets/table/e-table-header.c
index e76bef6bd5..9ee72e94a3 100644
--- a/widgets/table/e-table-header.c
+++ b/widgets/table/e-table-header.c
@@ -135,7 +135,7 @@ static void
eth_do_remove (ETableHeader *eth, int idx, gboolean do_unref)
{
if (do_unref)
- gtk_object_unref (GTK_OBJECT (eth->columns [idx]));
+ g_object_unref (eth->columns [idx]);
memmove (&eth->columns [idx], &eth->columns [idx+1],
sizeof (ETableCol *) * (eth->col_count - idx - 1));
@@ -151,9 +151,9 @@ eth_finalize (GObject *object)
if (eth->sort_info) {
if (eth->sort_info_group_change_id)
- g_signal_handler_disconnect(GTK_OBJECT(eth->sort_info),
+ g_signal_handler_disconnect(G_OBJECT(eth->sort_info),
eth->sort_info_group_change_id);
- gtk_object_unref(GTK_OBJECT(eth->sort_info));
+ g_object_unref(eth->sort_info);
eth->sort_info = NULL;
}
@@ -205,12 +205,12 @@ eth_set_prop (GObject *object, guint prop_id, const GValue *val, GParamSpec *psp
case PROP_SORT_INFO:
if (eth->sort_info) {
if (eth->sort_info_group_change_id)
- g_signal_handler_disconnect(GTK_OBJECT(eth->sort_info), eth->sort_info_group_change_id);
- g_object_unref (G_OBJECT(eth->sort_info));
+ g_signal_handler_disconnect(G_OBJECT(eth->sort_info), eth->sort_info_group_change_id);
+ g_object_unref (eth->sort_info);
}
eth->sort_info = E_TABLE_SORT_INFO(g_value_get_object (val));
if (eth->sort_info) {
- g_object_ref(G_OBJECT(eth->sort_info));
+ g_object_ref(eth->sort_info);
eth->sort_info_group_change_id
= g_signal_connect(G_OBJECT(eth->sort_info), "group_info_changed",
G_CALLBACK(eth_group_info_changed), eth);
@@ -393,8 +393,7 @@ e_table_header_add_column (ETableHeader *eth, ETableCol *tc, int pos)
/*
* We are the primary owners of the column
*/
- gtk_object_ref (GTK_OBJECT (tc));
- gtk_object_sink (GTK_OBJECT (tc));
+ g_object_ref (tc);
eth_do_insert (eth, pos, tc);
@@ -522,7 +521,7 @@ e_table_header_get_index_at (ETableHeader *eth, int x_offset)
* contained in the ETableHeader @eth. Note that every
* returned ETableCol in the array has been referenced, to release
* this information you need to g_free the buffer returned
- * and you need to gtk_object_unref every element returned
+ * and you need to g_object_unref every element returned
*/
ETableCol **
e_table_header_get_columns (ETableHeader *eth)
@@ -538,7 +537,7 @@ e_table_header_get_columns (ETableHeader *eth)
ret [eth->col_count] = NULL;
for (i = 0; i < eth->col_count; i++) {
- gtk_object_ref(GTK_OBJECT(ret[i]));
+ g_object_ref(ret[i]);
}
return ret;