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-window.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-window.c')
-rw-r--r-- | src/caja-window.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/caja-window.c b/src/caja-window.c index a0c1d06a..c584b87a 100644 --- a/src/caja-window.c +++ b/src/caja-window.c @@ -100,6 +100,7 @@ static void action_view_as_callback (GtkAction *action, static GList *history_list; G_DEFINE_TYPE_WITH_CODE (CajaWindow, caja_window, GTK_TYPE_WINDOW, + G_ADD_PRIVATE (CajaWindow) G_IMPLEMENT_INTERFACE (CAJA_TYPE_WINDOW_INFO, caja_window_info_iface_init)); @@ -152,7 +153,7 @@ caja_window_init (CajaWindow *window) } g_object_unref (provider); - window->details = G_TYPE_INSTANCE_GET_PRIVATE (window, CAJA_TYPE_WINDOW, CajaWindowDetails); + window->details = caja_window_get_instance_private (window); window->details->panes = NULL; window->details->active_pane = NULL; @@ -2186,8 +2187,4 @@ caja_window_class_init (CajaWindowClass *class) class->reload = caja_window_reload; class->go_up = caja_window_go_up_signal; - - - - g_type_class_add_private (G_OBJECT_CLASS (class), sizeof (CajaWindowDetails)); } |