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-navigation-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-navigation-window.c')
-rw-r--r-- | src/caja-navigation-window.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/caja-navigation-window.c b/src/caja-navigation-window.c index 57d5e425..9bef3cc2 100644 --- a/src/caja-navigation-window.c +++ b/src/caja-navigation-window.c @@ -88,7 +88,7 @@ static void use_extra_mouse_buttons_changed (gpointer static CajaWindowSlot *create_extra_pane (CajaNavigationWindow *window); -G_DEFINE_TYPE (CajaNavigationWindow, caja_navigation_window, CAJA_TYPE_WINDOW) +G_DEFINE_TYPE_WITH_PRIVATE (CajaNavigationWindow, caja_navigation_window, CAJA_TYPE_WINDOW) #define parent_class caja_navigation_window_parent_class static const struct @@ -115,7 +115,7 @@ caja_navigation_window_init (CajaNavigationWindow *window) win = CAJA_WINDOW (window); - window->details = G_TYPE_INSTANCE_GET_PRIVATE (window, CAJA_TYPE_NAVIGATION_WINDOW, CajaNavigationWindowDetails); + window->details = caja_navigation_window_get_instance_private (window); GtkStyleContext *context; @@ -1286,8 +1286,6 @@ caja_navigation_window_class_init (CajaNavigationWindowClass *class) CAJA_WINDOW_CLASS (class)->open_slot = real_open_slot; CAJA_WINDOW_CLASS (class)->close_slot = real_close_slot; - g_type_class_add_private (G_OBJECT_CLASS (class), sizeof (CajaNavigationWindowDetails)); - g_signal_connect_swapped (caja_preferences, "changed::" CAJA_PREFERENCES_MOUSE_BACK_BUTTON, G_CALLBACK(mouse_back_button_changed), |