summaryrefslogtreecommitdiff
path: root/gtk/gtktreesortable.c
diff options
context:
space:
mode:
authorManish Singh <yosh@gimp.org>2002-10-07 19:10:39 +0000
committerManish Singh <yosh@src.gnome.org>2002-10-07 19:10:39 +0000
commit55704fc7c1b5429bf8cc7e8100893b01898a9fe8 (patch)
tree10a62005decc56928e7d5730c7f84691796b8a40 /gtk/gtktreesortable.c
parentc1fff202edabc843327c94d35ad5f2da977f9957 (diff)
downloadgtk+-55704fc7c1b5429bf8cc7e8100893b01898a9fe8.tar.gz
Deprecation cleanup
Mon Oct 7 11:59:33 2002 Manish Singh <yosh@gimp.org> * gtk/gtkliststore.[ch] gtk/gtktreedatalist.[ch] gtk/gtktreednd.c gtk/gtktreemodel.[ch] gtk/gtktreemodelsort.[ch] gtk/gtktreeselection.[ch] gtk/gtktreesortable.[ch] gtk/gtktreestore.[ch]: Deprecation cleanup
Diffstat (limited to 'gtk/gtktreesortable.c')
-rw-r--r--gtk/gtktreesortable.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/gtk/gtktreesortable.c b/gtk/gtktreesortable.c
index 7e4ce5ab32..f9ad6fb3b3 100644
--- a/gtk/gtktreesortable.c
+++ b/gtk/gtktreesortable.c
@@ -20,14 +20,13 @@
#include "gtktreesortable.h"
#include "gtkmarshalers.h"
-#include "gtksignal.h"
static void gtk_tree_sortable_base_init (gpointer g_class);
-GtkType
+GType
gtk_tree_sortable_get_type (void)
{
- static GtkType tree_sortable_type = 0;
+ static GType tree_sortable_type = 0;
if (! tree_sortable_type)
{
@@ -43,7 +42,11 @@ gtk_tree_sortable_get_type (void)
0,
NULL
};
- tree_sortable_type = g_type_register_static (G_TYPE_INTERFACE, "GtkTreeSortable", &tree_sortable_info, 0);
+
+ tree_sortable_type =
+ g_type_register_static (G_TYPE_INTERFACE, "GtkTreeSortable",
+ &tree_sortable_info, 0);
+
g_type_interface_add_prerequisite (tree_sortable_type, GTK_TYPE_TREE_MODEL);
}
@@ -79,8 +82,7 @@ gtk_tree_sortable_sort_column_changed (GtkTreeSortable *sortable)
{
g_return_if_fail (GTK_IS_TREE_SORTABLE (sortable));
- g_signal_emit_by_name (G_OBJECT (sortable),
- "sort_column_changed");
+ g_signal_emit_by_name (sortable, "sort_column_changed");
}
/**