diff options
author | Stefano Karapetsas <[email protected]> | 2014-04-30 23:22:36 +0200 |
---|---|---|
committer | Stefano Karapetsas <[email protected]> | 2014-04-30 23:22:36 +0200 |
commit | a461197a8398b18b2f9bebfd4608395ba334b012 (patch) | |
tree | dfa9761db96b4a356af00806daee0a0350c51022 /gsearchtool/libmateui-deprecated | |
parent | 9f04cbb7ca221f48427779576cc12372f90aa18e (diff) | |
download | mate-utils-a461197a8398b18b2f9bebfd4608395ba334b012.tar.bz2 mate-utils-a461197a8398b18b2f9bebfd4608395ba334b012.tar.xz |
gsearchtool: Add GTK3 support
Diffstat (limited to 'gsearchtool/libmateui-deprecated')
-rw-r--r-- | gsearchtool/libmateui-deprecated/gsearchtool-entry.c | 16 |
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, |