diff options
author | Wu Xiaotian <[email protected]> | 2019-01-24 17:49:38 +0800 |
---|---|---|
committer | lukefromdc <[email protected]> | 2019-01-28 03:13:55 +0000 |
commit | e8f124db938d82554f98a325dc23e9e09e195eb4 (patch) | |
tree | 181b91a8b83ac64a9e86efc5b3b4266c33d3512b /src/caja-trash-bar.c | |
parent | 331a0e15750c92795aedb05a5e4178c6acc16bc1 (diff) | |
download | caja-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-trash-bar.c')
-rw-r--r-- | src/caja-trash-bar.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/caja-trash-bar.c b/src/caja-trash-bar.c index 53f9ebcd..8d5535bb 100644 --- a/src/caja-trash-bar.c +++ b/src/caja-trash-bar.c @@ -42,7 +42,7 @@ enum NUM_PROPERTIES }; -struct CajaTrashBarPrivate +struct _CajaTrashBarPrivate { GtkWidget *empty_button; GtkWidget *restore_button; @@ -51,7 +51,7 @@ struct CajaTrashBarPrivate gulong selection_handler_id; }; -G_DEFINE_TYPE (CajaTrashBar, caja_trash_bar, GTK_TYPE_BOX); +G_DEFINE_TYPE_WITH_PRIVATE (CajaTrashBar, caja_trash_bar, GTK_TYPE_BOX); static void restore_button_clicked_cb (GtkWidget *button, @@ -163,8 +163,6 @@ caja_trash_bar_class_init (CajaTrashBarClass *klass) G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS)); - - g_type_class_add_private (klass, sizeof (CajaTrashBarPrivate)); } static void @@ -183,7 +181,7 @@ caja_trash_bar_init (CajaTrashBar *bar) GtkWidget *label; GtkWidget *hbox; - bar->priv = CAJA_TRASH_BAR_GET_PRIVATE (bar); + bar->priv = caja_trash_bar_get_instance_private (bar); hbox = GTK_WIDGET (bar); |