summaryrefslogtreecommitdiff
path: root/libcaja-private/caja-column-chooser.c
diff options
context:
space:
mode:
authorWu Xiaotian <[email protected]>2019-01-26 12:06:01 +0800
committerraveit65 <[email protected]>2019-01-31 12:24:30 +0100
commit9cd63d4532ec29f9ed133e4f6d8ae07b241de416 (patch)
treed8a02f94d7a24b8fd8ad49439ecce5159f0c19f3 /libcaja-private/caja-column-chooser.c
parent419613671dcf6ec55d8dc49f7bbbb9d11c19d54c (diff)
downloadcaja-9cd63d4532ec29f9ed133e4f6d8ae07b241de416.tar.bz2
caja-9cd63d4532ec29f9ed133e4f6d8ae07b241de416.tar.xz
Avoid deprecated g_type_class_add_private under libcaja-private
Changed CajaClipboardMonitor, CajaColumnChooser and CajaDesktopIconFile
Diffstat (limited to 'libcaja-private/caja-column-chooser.c')
-rw-r--r--libcaja-private/caja-column-chooser.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/libcaja-private/caja-column-chooser.c b/libcaja-private/caja-column-chooser.c
index 0e2520a5..0c50f2d0 100644
--- a/libcaja-private/caja-column-chooser.c
+++ b/libcaja-private/caja-column-chooser.c
@@ -31,7 +31,7 @@
#include "caja-column-utilities.h"
-struct _CajaColumnChooserDetails
+struct _CajaColumnChooserPrivate
{
GtkTreeView *view;
GtkListStore *store;
@@ -65,7 +65,7 @@ enum
};
static guint signals[LAST_SIGNAL] = { 0 };
-G_DEFINE_TYPE(CajaColumnChooser, caja_column_chooser, GTK_TYPE_BOX);
+G_DEFINE_TYPE_WITH_PRIVATE (CajaColumnChooser, caja_column_chooser, GTK_TYPE_BOX);
static void caja_column_chooser_constructed (GObject *object);
@@ -128,8 +128,6 @@ caja_column_chooser_class_init (CajaColumnChooserClass *chooser_class)
CAJA_TYPE_FILE,
G_PARAM_CONSTRUCT_ONLY |
G_PARAM_WRITABLE));
-
- g_type_class_add_private (chooser_class, sizeof (CajaColumnChooserDetails));
}
static void
@@ -463,7 +461,7 @@ caja_column_chooser_constructed (GObject *object)
static void
caja_column_chooser_init (CajaColumnChooser *chooser)
{
- chooser->details = G_TYPE_INSTANCE_GET_PRIVATE ((chooser), CAJA_TYPE_COLUMN_CHOOSER, CajaColumnChooserDetails);
+ chooser->details = caja_column_chooser_get_instance_private (chooser);
g_object_set (G_OBJECT (chooser),
"homogeneous", FALSE,