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-property-browser.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-property-browser.c')
-rw-r--r-- | src/caja-property-browser.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/caja-property-browser.c b/src/caja-property-browser.c index c674a450..f269b6e4 100644 --- a/src/caja-property-browser.c +++ b/src/caja-property-browser.c @@ -66,7 +66,7 @@ typedef enum CAJA_PROPERTY_EMBLEM } CajaPropertyType; -struct CajaPropertyBrowserDetails +struct _CajaPropertyBrowserPrivate { GtkWidget *container; @@ -194,7 +194,7 @@ static GtkTargetEntry drag_types[] = }; -G_DEFINE_TYPE (CajaPropertyBrowser, caja_property_browser, GTK_TYPE_WINDOW) +G_DEFINE_TYPE_WITH_PRIVATE (CajaPropertyBrowser, caja_property_browser, GTK_TYPE_WINDOW) /* Destroy the three dialogs for adding patterns/colors/emblems if any of them @@ -253,8 +253,6 @@ caja_property_browser_class_init (CajaPropertyBrowserClass *klass) widget_class->drag_begin = caja_property_browser_drag_begin; widget_class->drag_data_get = caja_property_browser_drag_data_get; widget_class->drag_end = caja_property_browser_drag_end; - - g_type_class_add_private (klass, sizeof (CajaPropertyBrowserDetails)); } /* initialize the instance's fields, create the necessary subviews, etc. */ @@ -270,9 +268,7 @@ caja_property_browser_init (CajaPropertyBrowser *property_browser) widget = GTK_WIDGET (property_browser); - property_browser->details = G_TYPE_INSTANCE_GET_PRIVATE (property_browser, - CAJA_TYPE_PROPERTY_BROWSER, - CajaPropertyBrowserDetails); + property_browser->details = caja_property_browser_get_instance_private (property_browser); property_browser->details->category = g_strdup ("patterns"); property_browser->details->category_type = CAJA_PROPERTY_PATTERN; |