summaryrefslogtreecommitdiff
path: root/gsearchtool/libmateui-deprecated
diff options
context:
space:
mode:
Diffstat (limited to 'gsearchtool/libmateui-deprecated')
-rw-r--r--gsearchtool/libmateui-deprecated/gsearchtool-entry.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/gsearchtool/libmateui-deprecated/gsearchtool-entry.c b/gsearchtool/libmateui-deprecated/gsearchtool-entry.c
index cd665a24..4916865a 100644
--- a/gsearchtool/libmateui-deprecated/gsearchtool-entry.c
+++ b/gsearchtool/libmateui-deprecated/gsearchtool-entry.c
@@ -111,12 +111,20 @@ gsearch_history_entry_get_property (GObject *object,
}
static void
+#if GTK_CHECK_VERSION (3, 0, 0)
+gsearch_history_entry_destroy (GtkWidget *object)
+#else
gsearch_history_entry_destroy (GtkObject *object)
+#endif
{
gsearch_history_entry_set_enable_completion (GSEARCH_HISTORY_ENTRY (object),
FALSE);
+#if GTK_CHECK_VERSION (3, 0, 0)
+ GTK_WIDGET_CLASS (gsearch_history_entry_parent_class)->destroy (object);
+#else
GTK_OBJECT_CLASS (gsearch_history_entry_parent_class)->destroy (object);
+#endif
}
static void
@@ -141,12 +149,20 @@ static void
gsearch_history_entry_class_init (GsearchHistoryEntryClass *klass)
{
GObjectClass *object_class = G_OBJECT_CLASS (klass);
+#if GTK_CHECK_VERSION (3, 0, 0)
+ GtkWidgetClass *gtkwidget_class = GTK_WIDGET_CLASS (klass);
+#else
GtkObjectClass *gtkobject_class = GTK_OBJECT_CLASS (klass);
+#endif
object_class->set_property = gsearch_history_entry_set_property;
object_class->get_property = gsearch_history_entry_get_property;
object_class->finalize = gsearch_history_entry_finalize;
+#if GTK_CHECK_VERSION (3, 0, 0)
+ gtkwidget_class->destroy = gsearch_history_entry_destroy;
+#else
gtkobject_class->destroy = gsearch_history_entry_destroy;
+#endif
g_object_class_install_property (object_class,
PROP_HISTORY_ID,