diff options
author | Emmanuele Bassi <ebassi@gnome.org> | 2013-06-27 20:02:52 +0100 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gnome.org> | 2013-07-09 09:30:02 +0100 |
commit | 0899ef7cc9cf73824901923143f38bb9b6d224a3 (patch) | |
tree | 16207a8837da8a89a6f4a1d1a1c23074fd29aa1d /gtk/gtktexthandle.c | |
parent | 365919d5f6da0a8648815ca5cf5805fb88c9be16 (diff) | |
download | gtk+-0899ef7cc9cf73824901923143f38bb9b6d224a3.tar.gz |
gtk: Use new macros for defining private data
https://bugzilla.gnome.org/show_bug.cgi?id=702996
Diffstat (limited to 'gtk/gtktexthandle.c')
-rw-r--r-- | gtk/gtktexthandle.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/gtk/gtktexthandle.c b/gtk/gtktexthandle.c index bb0f851535..ead6ecd961 100644 --- a/gtk/gtktexthandle.c +++ b/gtk/gtktexthandle.c @@ -66,7 +66,7 @@ struct _GtkTextHandlePrivate guint mode : 2; }; -G_DEFINE_TYPE (GtkTextHandle, _gtk_text_handle, G_TYPE_OBJECT) +G_DEFINE_TYPE_WITH_PRIVATE (GtkTextHandle, _gtk_text_handle, G_TYPE_OBJECT) static guint signals[LAST_SIGNAL] = { 0 }; @@ -535,8 +535,6 @@ _gtk_text_handle_class_init (GtkTextHandleClass *klass) P_("Window the coordinates are based upon"), GDK_TYPE_WINDOW, GTK_PARAM_READWRITE)); - - g_type_class_add_private (object_class, sizeof (GtkTextHandlePrivate)); } static void @@ -545,9 +543,7 @@ _gtk_text_handle_init (GtkTextHandle *handle) GtkTextHandlePrivate *priv; GtkWidgetPath *path; - handle->priv = priv = G_TYPE_INSTANCE_GET_PRIVATE (handle, - GTK_TYPE_TEXT_HANDLE, - GtkTextHandlePrivate); + handle->priv = priv = _gtk_text_handle_get_instance_private (handle); path = gtk_widget_path_new (); gtk_widget_path_append_type (path, GTK_TYPE_TEXT_HANDLE); |