[gtksourceview/wip/search: 8/19] search: The King is Dead
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview/wip/search: 8/19] search: The King is Dead
- Date: Mon, 1 Jul 2013 13:13:27 +0000 (UTC)
commit 009bf0ed1483d04850210aad3432794ad32e5e75
Author: Sébastien Wilmet <swilmet gnome org>
Date: Tue Jun 25 11:36:34 2013 +0200
search: The King is Dead
gtksourceview/gtksourcesearch.c | 13 +++----------
1 files changed, 3 insertions(+), 10 deletions(-)
---
diff --git a/gtksourceview/gtksourcesearch.c b/gtksourceview/gtksourcesearch.c
index bd9de6c..8130250 100644
--- a/gtksourceview/gtksourcesearch.c
+++ b/gtksourceview/gtksourcesearch.c
@@ -139,12 +139,7 @@ struct _GtkSourceSearchPrivate
guint at_word_boundaries : 1;
};
-#define GTK_SOURCE_SEARCH_GET_PRIVATE(object) \
- (G_TYPE_INSTANCE_GET_PRIVATE ((object), \
- GTK_SOURCE_TYPE_SEARCH, \
- GtkSourceSearchPrivate))
-
-G_DEFINE_TYPE (GtkSourceSearch, _gtk_source_search, G_TYPE_OBJECT);
+G_DEFINE_TYPE_WITH_PRIVATE (GtkSourceSearch, _gtk_source_search, G_TYPE_OBJECT);
static gboolean
dispose_has_run (GtkSourceSearch *search)
@@ -931,14 +926,12 @@ _gtk_source_search_class_init (GtkSourceSearchClass *klass)
object_class->dispose = _gtk_source_search_dispose;
object_class->finalize = _gtk_source_search_finalize;
-
- g_type_class_add_private (object_class, sizeof (GtkSourceSearchPrivate));
}
static void
-_gtk_source_search_init (GtkSourceSearch *self)
+_gtk_source_search_init (GtkSourceSearch *search)
{
- self->priv = GTK_SOURCE_SEARCH_GET_PRIVATE (self);
+ search->priv = _gtk_source_search_get_instance_private (search);
}
GtkSourceSearch *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]