summaryrefslogtreecommitdiff
path: root/src/caja-connect-server-dialog.c
diff options
context:
space:
mode:
authorWu Xiaotian <[email protected]>2019-01-24 17:49:38 +0800
committerlukefromdc <[email protected]>2019-01-28 03:13:55 +0000
commite8f124db938d82554f98a325dc23e9e09e195eb4 (patch)
tree181b91a8b83ac64a9e86efc5b3b4266c33d3512b /src/caja-connect-server-dialog.c
parent331a0e15750c92795aedb05a5e4178c6acc16bc1 (diff)
downloadcaja-e8f124db938d82554f98a325dc23e9e09e195eb4.tar.bz2
caja-e8f124db938d82554f98a325dc23e9e09e195eb4.tar.xz
Avoid deprecated g_type_class_add_private
- caja-connect-server-dialog - caja-navigation-window - caja-property-browser - caja-sidebar-title - caja-trash-bar - caja-window - caja-zoom-action - caja-zoom-control - fm-desktop-icon-view - fm-properties-window
Diffstat (limited to 'src/caja-connect-server-dialog.c')
-rw-r--r--src/caja-connect-server-dialog.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/caja-connect-server-dialog.c b/src/caja-connect-server-dialog.c
index 4cd9f5db..65cfb8ed 100644
--- a/src/caja-connect-server-dialog.c
+++ b/src/caja-connect-server-dialog.c
@@ -45,7 +45,7 @@
* - NetworkManager integration
*/
-struct _CajaConnectServerDialogDetails
+struct _CajaConnectServerDialogPrivate
{
CajaApplication *application;
@@ -79,7 +79,7 @@ struct _CajaConnectServerDialogDetails
gboolean should_destroy;
};
-G_DEFINE_TYPE (CajaConnectServerDialog, caja_connect_server_dialog,
+G_DEFINE_TYPE_WITH_PRIVATE (CajaConnectServerDialog, caja_connect_server_dialog,
GTK_TYPE_DIALOG)
static void sensitive_entry_changed_callback (GtkEditable *editable,
@@ -851,8 +851,7 @@ caja_connect_server_dialog_init (CajaConnectServerDialog *dialog)
gchar *str;
int i;
- dialog->details = G_TYPE_INSTANCE_GET_PRIVATE (dialog, CAJA_TYPE_CONNECT_SERVER_DIALOG,
- CajaConnectServerDialogDetails);
+ dialog->details = caja_connect_server_dialog_get_instance_private (dialog);
content_area = gtk_dialog_get_content_area (GTK_DIALOG (dialog));
@@ -1167,8 +1166,6 @@ caja_connect_server_dialog_class_init (CajaConnectServerDialogClass *class)
oclass = G_OBJECT_CLASS (class);
oclass->finalize = caja_connect_server_dialog_finalize;
-
- g_type_class_add_private (class, sizeof (CajaConnectServerDialogDetails));
}
GtkWidget *