[gedit-plugins/remove-deprecated] Remove deprecated from gedit-bookmarks-message-remove
- From: Jordi Mas <jmas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit-plugins/remove-deprecated] Remove deprecated from gedit-bookmarks-message-remove
- Date: Sun, 28 Apr 2019 09:07:19 +0000 (UTC)
commit 0fd965a397bef9c73f41384d4cacfc12a24260da
Author: Jordi Mas <jmas softcatala org>
Date: Sun Apr 28 11:06:55 2019 +0200
Remove deprecated from gedit-bookmarks-message-remove
plugins/bookmarks/messages/gedit-bookmarks-message-remove.c | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/plugins/bookmarks/messages/gedit-bookmarks-message-remove.c
b/plugins/bookmarks/messages/gedit-bookmarks-message-remove.c
index c4ed0f4..a693177 100644
--- a/plugins/bookmarks/messages/gedit-bookmarks-message-remove.c
+++ b/plugins/bookmarks/messages/gedit-bookmarks-message-remove.c
@@ -24,8 +24,6 @@
#include <gedit/gedit-view.h>
#include "gedit-bookmarks-message-remove.h"
-#define GEDIT_BOOKMARKS_MESSAGE_REMOVE_GET_PRIVATE(object)(G_TYPE_INSTANCE_GET_PRIVATE((object),
GEDIT_TYPE_BOOKMARKS_MESSAGE_REMOVE, GeditBookmarksMessageRemovePrivate))
-
enum
{
PROP_0,
@@ -40,7 +38,7 @@ struct _GeditBookmarksMessageRemovePrivate
GtkTextIter *iter;
};
-G_DEFINE_TYPE (GeditBookmarksMessageRemove, gedit_bookmarks_message_remove, GEDIT_TYPE_MESSAGE)
+G_DEFINE_TYPE_WITH_PRIVATE (GeditBookmarksMessageRemove, gedit_bookmarks_message_remove, GEDIT_TYPE_MESSAGE)
static void
gedit_bookmarks_message_remove_finalize (GObject *obj)
@@ -142,12 +140,10 @@ gedit_bookmarks_message_remove_class_init (GeditBookmarksMessageRemoveClass *kla
G_PARAM_READWRITE |
G_PARAM_CONSTRUCT |
G_PARAM_STATIC_STRINGS));
-
- g_type_class_add_private (object_class, sizeof (GeditBookmarksMessageRemovePrivate));
}
static void
gedit_bookmarks_message_remove_init (GeditBookmarksMessageRemove *message)
{
- message->priv = GEDIT_BOOKMARKS_MESSAGE_REMOVE_GET_PRIVATE (message);
+ message->priv = gedit_bookmarks_message_remove_get_instance_private (message);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]