summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorTingPing <tingping@tingping.se>2014-01-20 01:25:35 -0500
committerTingPing <tingping@tingping.se>2014-01-20 01:25:35 -0500
commit093bdd8b1c3a6f8b211a647b7b4dbe6cfc38e69e (patch)
tree23f6ecefc012bc8ee6c85b8162b65152484a20b2 /src
parent681e14b3b823c3e700812b19c1f561e6370df0c4 (diff)
Fix warning
Leftovers from 38cbabea
Diffstat (limited to 'src')
-rw-r--r--src/fe-gtk/xtext.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fe-gtk/xtext.c b/src/fe-gtk/xtext.c
index da5a18aa..7010ac46 100644
--- a/src/fe-gtk/xtext.c
+++ b/src/fe-gtk/xtext.c
@@ -615,8 +615,8 @@ gtk_xtext_destroy (GtkObject * object)
 		xtext->orig_buffer = NULL;
 	}
 
-	if (G_OBJECT_CLASS (parent_class)->dispose)
-		(*G_OBJECT_CLASS (parent_class)->dispose) (object);
+	if (GTK_OBJECT_CLASS (parent_class)->destroy)
+		(*GTK_OBJECT_CLASS (parent_class)->destroy) (object);
 }
 
 static void
@@ -2159,7 +2159,7 @@ gtk_xtext_class_init (GtkXTextClass * class)
 	GtkWidgetClass *widget_class;
 	GtkXTextClass *xtext_class;
 
-	object_class = (GObjectClass *) class;
+	object_class = (GtkObjectClass *) class;
 	widget_class = (GtkWidgetClass *) class;
 	xtext_class = (GtkXTextClass *) class;