summaryrefslogtreecommitdiff
path: root/src/file-manager/fm-properties-window.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/file-manager/fm-properties-window.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/file-manager/fm-properties-window.c')
-rw-r--r--src/file-manager/fm-properties-window.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/file-manager/fm-properties-window.c b/src/file-manager/fm-properties-window.c
index 90d97717..7eafb9a5 100644
--- a/src/file-manager/fm-properties-window.c
+++ b/src/file-manager/fm-properties-window.c
@@ -83,7 +83,7 @@
static GHashTable *windows;
static GHashTable *pending_lists;
-struct FMPropertiesWindowDetails {
+struct _FMPropertiesWindowPrivate {
GList *original_files;
GList *target_files;
@@ -231,7 +231,7 @@ static GtkLabel *attach_ellipsizing_value_label (GtkGrid *grid,
static GtkWidget* create_pie_widget (FMPropertiesWindow *window);
-G_DEFINE_TYPE (FMPropertiesWindow, fm_properties_window, GTK_TYPE_DIALOG);
+G_DEFINE_TYPE_WITH_PRIVATE (FMPropertiesWindow, fm_properties_window, GTK_TYPE_DIALOG);
static gboolean
is_multi_file_window (FMPropertiesWindow *window)
@@ -5762,14 +5762,10 @@ fm_properties_window_class_init (FMPropertiesWindowClass *class)
binding_set = gtk_binding_set_by_class (class);
gtk_binding_entry_add_signal (binding_set, GDK_KEY_Escape, 0,
"close", 0);
-
- g_type_class_add_private (class, sizeof (FMPropertiesWindowDetails));
}
static void
fm_properties_window_init (FMPropertiesWindow *window)
{
- window->details = G_TYPE_INSTANCE_GET_PRIVATE (window, FM_TYPE_PROPERTIES_WINDOW,
- FMPropertiesWindowDetails);
-
+ window->details = fm_properties_window_get_instance_private (window);
}