summaryrefslogtreecommitdiff
path: root/gtk/gtksearchenginequartz.c
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2013-06-27 20:02:52 +0100
committerEmmanuele Bassi <ebassi@gnome.org>2013-07-09 09:30:02 +0100
commit0899ef7cc9cf73824901923143f38bb9b6d224a3 (patch)
tree16207a8837da8a89a6f4a1d1a1c23074fd29aa1d /gtk/gtksearchenginequartz.c
parent365919d5f6da0a8648815ca5cf5805fb88c9be16 (diff)
downloadgtk+-0899ef7cc9cf73824901923143f38bb9b6d224a3.tar.gz
gtk: Use new macros for defining private data
https://bugzilla.gnome.org/show_bug.cgi?id=702996
Diffstat (limited to 'gtk/gtksearchenginequartz.c')
-rw-r--r--gtk/gtksearchenginequartz.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/gtk/gtksearchenginequartz.c b/gtk/gtksearchenginequartz.c
index 7281fcf9b2..fc8370d301 100644
--- a/gtk/gtksearchenginequartz.c
+++ b/gtk/gtksearchenginequartz.c
@@ -55,7 +55,7 @@ struct _GtkSearchEngineQuartzPrivate
gboolean query_finished;
};
-G_DEFINE_TYPE (GtkSearchEngineQuartz, _gtk_search_engine_quartz, GTK_TYPE_SEARCH_ENGINE);
+G_DEFINE_TYPE_WITH_PRIVATE (GtkSearchEngineQuartz, _gtk_search_engine_quartz, GTK_TYPE_SEARCH_ENGINE)
/* Implementation of the objective-C object */
@@ -229,8 +229,6 @@ _gtk_search_engine_quartz_class_init (GtkSearchEngineQuartzClass *class)
engine_class->start = gtk_search_engine_quartz_start;
engine_class->stop = gtk_search_engine_quartz_stop;
engine_class->is_indexed = gtk_search_engine_quartz_is_indexed;
-
- g_type_class_add_private (gobject_class, sizeof (GtkSearchEngineQuartzPrivate));
}
static void
@@ -238,7 +236,7 @@ _gtk_search_engine_quartz_init (GtkSearchEngineQuartz *engine)
{
QUARTZ_POOL_ALLOC;
- engine->priv = G_TYPE_INSTANCE_GET_PRIVATE (engine, GTK_TYPE_SEARCH_ENGINE_QUARTZ, GtkSearchEngineQuartzPrivate);
+ engine->priv = _gtk_search_engine_quartz_get_instance_private (engine);
engine->priv->ns_query = [[NSMetadataQuery alloc] init];
engine->priv->receiver = [[ResultReceiver alloc] init];