[gedit-plugins/remove-deprecated] gedit_bookmarks_message_goto_previous



commit 9e6cec9c29fd720c11ede0648c0ff8f6d1194a0a
Author: Jordi Mas <jmas softcatala org>
Date:   Sun Apr 28 10:47:30 2019 +0200

    gedit_bookmarks_message_goto_previous

 plugins/bookmarks/messages/gedit-bookmarks-message-goto-previous.c | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/plugins/bookmarks/messages/gedit-bookmarks-message-goto-previous.c 
b/plugins/bookmarks/messages/gedit-bookmarks-message-goto-previous.c
index 8ba41cd..f4a7695 100644
--- a/plugins/bookmarks/messages/gedit-bookmarks-message-goto-previous.c
+++ b/plugins/bookmarks/messages/gedit-bookmarks-message-goto-previous.c
@@ -24,8 +24,6 @@
 #include <gedit/gedit-view.h>
 #include "gedit-bookmarks-message-goto-previous.h"
 
-#define GEDIT_BOOKMARKS_MESSAGE_GOTO_PREVIOUS_GET_PRIVATE(object)(G_TYPE_INSTANCE_GET_PRIVATE((object), 
GEDIT_TYPE_BOOKMARKS_MESSAGE_GOTO_PREVIOUS, GeditBookmarksMessageGotoPreviousPrivate))
-
 enum
 {
        PROP_0,
@@ -40,7 +38,7 @@ struct _GeditBookmarksMessageGotoPreviousPrivate
        GtkTextIter *iter;
 };
 
-G_DEFINE_TYPE (GeditBookmarksMessageGotoPrevious, gedit_bookmarks_message_goto_previous, GEDIT_TYPE_MESSAGE)
+G_DEFINE_TYPE_WITH_PRIVATE (GeditBookmarksMessageGotoPrevious, gedit_bookmarks_message_goto_previous, 
GEDIT_TYPE_MESSAGE)
 
 static void
 gedit_bookmarks_message_goto_previous_finalize (GObject *obj)
@@ -143,11 +141,10 @@ gedit_bookmarks_message_goto_previous_class_init (GeditBookmarksMessageGotoPrevi
                                                              G_PARAM_CONSTRUCT |
                                                              G_PARAM_STATIC_STRINGS));
 
-       g_type_class_add_private (object_class, sizeof (GeditBookmarksMessageGotoPreviousPrivate));
 }
 
 static void
 gedit_bookmarks_message_goto_previous_init (GeditBookmarksMessageGotoPrevious *message)
 {
-       message->priv = GEDIT_BOOKMARKS_MESSAGE_GOTO_PREVIOUS_GET_PRIVATE (message);
+       message->priv = gedit_bookmarks_message_goto_previous_get_instance_private (message);
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]