diff options
author | Wu Xiaotian <[email protected]> | 2019-01-26 12:16:47 +0800 |
---|---|---|
committer | raveit65 <[email protected]> | 2019-01-31 09:35:18 +0100 |
commit | 419613671dcf6ec55d8dc49f7bbbb9d11c19d54c (patch) | |
tree | cca9893887ebb2cde1a639d1b6a3227ab1f5a9ef /src/caja-desktop-window.c | |
parent | 328d820311cacf644014efda12400172179c0c4d (diff) | |
download | caja-419613671dcf6ec55d8dc49f7bbbb9d11c19d54c.tar.bz2 caja-419613671dcf6ec55d8dc49f7bbbb9d11c19d54c.tar.xz |
Avoid deprecated g_type_class_add_private under src
Changed CajaConnectServerOperation, CajaDesktopWindow and CajaImagePropertiesPage
Diffstat (limited to 'src/caja-desktop-window.c')
-rw-r--r-- | src/caja-desktop-window.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/src/caja-desktop-window.c b/src/caja-desktop-window.c index 2e8ad5bd..50305b97 100644 --- a/src/caja-desktop-window.c +++ b/src/caja-desktop-window.c @@ -72,14 +72,14 @@ caja_desktop_window_accessible_class_init (CajaDesktopWindowAccessibleClass *kla aclass->get_attributes = desktop_get_attributes; } -struct CajaDesktopWindowDetails +struct _CajaDesktopWindowPrivate { gulong size_changed_id; gboolean loaded; }; -G_DEFINE_TYPE (CajaDesktopWindow, caja_desktop_window, +G_DEFINE_TYPE_WITH_PRIVATE (CajaDesktopWindow, caja_desktop_window, CAJA_TYPE_SPATIAL_WINDOW); static void @@ -88,8 +88,7 @@ caja_desktop_window_init (CajaDesktopWindow *window) GtkAction *action; AtkObject *accessible; - window->details = G_TYPE_INSTANCE_GET_PRIVATE (window, CAJA_TYPE_DESKTOP_WINDOW, - CajaDesktopWindowDetails); + window->details = caja_desktop_window_get_instance_private (window); GtkStyleContext *context; @@ -222,7 +221,7 @@ static void unrealize (GtkWidget *widget) { CajaDesktopWindow *window; - CajaDesktopWindowDetails *details; + CajaDesktopWindowPrivate *details; GdkWindow *root_window; window = CAJA_DESKTOP_WINDOW (widget); @@ -280,7 +279,7 @@ static void realize (GtkWidget *widget) { CajaDesktopWindow *window; - CajaDesktopWindowDetails *details; + CajaDesktopWindowPrivate *details; window = CAJA_DESKTOP_WINDOW (widget); details = window->details; @@ -339,8 +338,6 @@ caja_desktop_window_class_init (CajaDesktopWindowClass *klass) nclass->window_type = CAJA_WINDOW_DESKTOP; nclass->get_title = real_get_title; nclass->get_icon = real_get_icon; - - g_type_class_add_private (klass, sizeof (CajaDesktopWindowDetails)); } gboolean |