summaryrefslogtreecommitdiff
path: root/src/caja-sidebar-title.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-sidebar-title.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-sidebar-title.c')
-rw-r--r--src/caja-sidebar-title.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/caja-sidebar-title.c b/src/caja-sidebar-title.c
index e13c8549..af9cb932 100644
--- a/src/caja-sidebar-title.c
+++ b/src/caja-sidebar-title.c
@@ -80,7 +80,7 @@ enum
LAST_LABEL_COLOR
};
-struct CajaSidebarTitleDetails
+struct _CajaSidebarTitlePrivate
{
CajaFile *file;
guint file_changed_connection;
@@ -97,7 +97,7 @@ struct CajaSidebarTitleDetails
gboolean determined_icon;
};
-G_DEFINE_TYPE (CajaSidebarTitle, caja_sidebar_title, GTK_TYPE_BOX)
+G_DEFINE_TYPE_WITH_PRIVATE (CajaSidebarTitle, caja_sidebar_title, GTK_TYPE_BOX)
static void
style_updated (GtkWidget *widget)
@@ -116,9 +116,7 @@ style_updated (GtkWidget *widget)
static void
caja_sidebar_title_init (CajaSidebarTitle *sidebar_title)
{
- sidebar_title->details = G_TYPE_INSTANCE_GET_PRIVATE (sidebar_title,
- CAJA_TYPE_SIDEBAR_TITLE,
- CajaSidebarTitleDetails);
+ sidebar_title->details = caja_sidebar_title_get_instance_private (sidebar_title);
gtk_orientable_set_orientation (GTK_ORIENTABLE (sidebar_title), GTK_ORIENTATION_VERTICAL);
@@ -220,8 +218,6 @@ caja_sidebar_title_class_init (CajaSidebarTitleClass *klass)
"Color used for information text against a light background",
GDK_TYPE_RGBA,
G_PARAM_READABLE));
-
- g_type_class_add_private (klass, sizeof (CajaSidebarTitleDetails));
}
/* return a new index title object */