summaryrefslogtreecommitdiff
path: root/libcaja-private/caja-file.c
diff options
context:
space:
mode:
authorWu Xiaotian <[email protected]>2019-01-26 12:11:10 +0800
committerlukefromdc <[email protected]>2019-01-31 19:36:27 +0000
commit0b073710ad39202758525b9dd0a08f35fa84481d (patch)
tree7e1d23e9cbf9ad0da62ec17e770665aa217f7c70 /libcaja-private/caja-file.c
parente5129f93e489c1716d815452075f57a64b5fa149 (diff)
downloadcaja-0b073710ad39202758525b9dd0a08f35fa84481d.tar.bz2
caja-0b073710ad39202758525b9dd0a08f35fa84481d.tar.xz
Avoid deprecated g_type_class_add_private under libcaja-private
Changed CajaFileConflictDialog and CajaFile
Diffstat (limited to 'libcaja-private/caja-file.c')
-rw-r--r--libcaja-private/caja-file.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/libcaja-private/caja-file.c b/libcaja-private/caja-file.c
index 4b35195c..01e9db83 100644
--- a/libcaja-private/caja-file.c
+++ b/libcaja-private/caja-file.c
@@ -167,13 +167,14 @@ static void file_mount_unmounted (GMount *mount, gpointer data);
static void metadata_hash_free (GHashTable *hash);
G_DEFINE_TYPE_WITH_CODE (CajaFile, caja_file, G_TYPE_OBJECT,
+ G_ADD_PRIVATE (CajaFile)
G_IMPLEMENT_INTERFACE (CAJA_TYPE_FILE_INFO,
caja_file_info_iface_init));
static void
caja_file_init (CajaFile *file)
{
- file->details = G_TYPE_INSTANCE_GET_PRIVATE ((file), CAJA_TYPE_FILE, CajaFileDetails);
+ file->details = caja_file_get_instance_private (file);
caja_file_clear_info (file);
caja_file_invalidate_extension_info_internal (file);
@@ -8607,8 +8608,6 @@ caja_file_class_init (CajaFileClass *class)
g_cclosure_marshal_VOID__VOID,
G_TYPE_NONE, 0);
- g_type_class_add_private (class, sizeof (CajaFileDetails));
-
eel_g_settings_add_auto_enum (caja_preferences,
CAJA_PREFERENCES_DATE_FORMAT,
&date_format_pref);