summaryrefslogtreecommitdiff
path: root/src/caja-navigation-window.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/caja-navigation-window.c')
-rw-r--r--src/caja-navigation-window.c6
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),