[gtk+] gtktextbuffer: Remove GET_PRIVATE macro
- From: Javier Jardón <jjardon src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] gtktextbuffer: Remove GET_PRIVATE macro
- Date: Mon, 19 Jul 2010 13:03:07 +0000 (UTC)
commit 0fd82767fff53ea9c8fe8210ce6989094a333957
Author: Javier Jardón <jjardon gnome org>
Date: Mon Jul 19 15:01:02 2010 +0200
gtktextbuffer: Remove GET_PRIVATE macro
It's only needed one time and should not be used again in the code.
gtk/gtktextbuffer.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtktextbuffer.c b/gtk/gtktextbuffer.c
index 63d19c3..c184fd1 100644
--- a/gtk/gtktextbuffer.c
+++ b/gtk/gtktextbuffer.c
@@ -42,8 +42,6 @@
#include "gtkintl.h"
-#define GTK_TEXT_BUFFER_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE ((obj), GTK_TYPE_TEXT_BUFFER, GtkTextBufferPrivate))
-
typedef struct _GtkTextLogAttrCache GtkTextLogAttrCache;
struct _GtkTextBufferPrivate
@@ -623,7 +621,9 @@ gtk_text_buffer_class_init (GtkTextBufferClass *klass)
static void
gtk_text_buffer_init (GtkTextBuffer *buffer)
{
- buffer->priv = GTK_TEXT_BUFFER_GET_PRIVATE (buffer);
+ buffer->priv = G_TYPE_INSTANCE_GET_PRIVATE (buffer,
+ GTK_TYPE_TEXT_BUFFER,
+ GtkTextBufferPrivate);
buffer->priv->clipboard_contents_buffers = NULL;
buffer->priv->tag_table = NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]