summaryrefslogtreecommitdiff
path: root/src/caja-connect-server-operation.c
diff options
context:
space:
mode:
authorWu Xiaotian <[email protected]>2019-01-26 12:16:47 +0800
committerraveit65 <[email protected]>2019-01-31 09:35:18 +0100
commit419613671dcf6ec55d8dc49f7bbbb9d11c19d54c (patch)
treecca9893887ebb2cde1a639d1b6a3227ab1f5a9ef /src/caja-connect-server-operation.c
parent328d820311cacf644014efda12400172179c0c4d (diff)
downloadcaja-419613671dcf6ec55d8dc49f7bbbb9d11c19d54c.tar.bz2
caja-419613671dcf6ec55d8dc49f7bbbb9d11c19d54c.tar.xz
Avoid deprecated g_type_class_add_private under src
Changed CajaConnectServerOperation, CajaDesktopWindow and CajaImagePropertiesPage
Diffstat (limited to 'src/caja-connect-server-operation.c')
-rw-r--r--src/caja-connect-server-operation.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/src/caja-connect-server-operation.c b/src/caja-connect-server-operation.c
index 73daa364..d48d03b8 100644
--- a/src/caja-connect-server-operation.c
+++ b/src/caja-connect-server-operation.c
@@ -28,18 +28,18 @@
#include "caja-connect-server-dialog.h"
-G_DEFINE_TYPE (CajaConnectServerOperation,
- caja_connect_server_operation, GTK_TYPE_MOUNT_OPERATION);
-
enum {
PROP_DIALOG = 1,
NUM_PROPERTIES
};
-struct _CajaConnectServerOperationDetails {
+struct _CajaConnectServerOperationPrivate {
CajaConnectServerDialog *dialog;
};
+G_DEFINE_TYPE_WITH_PRIVATE (CajaConnectServerOperation,
+ caja_connect_server_operation, GTK_TYPE_MOUNT_OPERATION);
+
static void
fill_details_async_cb (GObject *source,
GAsyncResult *result,
@@ -119,16 +119,12 @@ caja_connect_server_operation_class_init (CajaConnectServerOperationClass *klass
CAJA_TYPE_CONNECT_SERVER_DIALOG,
G_PARAM_CONSTRUCT_ONLY | G_PARAM_WRITABLE | G_PARAM_STATIC_STRINGS);
g_object_class_install_property (object_class, PROP_DIALOG, pspec);
-
- g_type_class_add_private (klass, sizeof (CajaConnectServerOperationDetails));
}
static void
caja_connect_server_operation_init (CajaConnectServerOperation *self)
{
- self->details = G_TYPE_INSTANCE_GET_PRIVATE (self,
- CAJA_TYPE_CONNECT_SERVER_OPERATION,
- CajaConnectServerOperationDetails);
+ self->details = caja_connect_server_operation_get_instance_private (self);
}
GMountOperation *