@@ -66,7 +66,7 @@ typedef enum
6666 CAJA_PROPERTY_EMBLEM
6767} CajaPropertyType ;
6868
69- struct CajaPropertyBrowserDetails
69+ struct _CajaPropertyBrowserPrivate
7070{
7171 GtkWidget * container ;
7272
@@ -194,7 +194,7 @@ static GtkTargetEntry drag_types[] =
194194};
195195
196196
197- G_DEFINE_TYPE (CajaPropertyBrowser , caja_property_browser , GTK_TYPE_WINDOW )
197+ G_DEFINE_TYPE_WITH_PRIVATE (CajaPropertyBrowser , caja_property_browser , GTK_TYPE_WINDOW )
198198
199199
200200/* Destroy the three dialogs for adding patterns/colors/emblems if any of them
@@ -253,8 +253,6 @@ caja_property_browser_class_init (CajaPropertyBrowserClass *klass)
253253 widget_class -> drag_begin = caja_property_browser_drag_begin ;
254254 widget_class -> drag_data_get = caja_property_browser_drag_data_get ;
255255 widget_class -> drag_end = caja_property_browser_drag_end ;
256-
257- g_type_class_add_private (klass , sizeof (CajaPropertyBrowserDetails ));
258256}
259257
260258/* initialize the instance's fields, create the necessary subviews, etc. */
@@ -270,9 +268,7 @@ caja_property_browser_init (CajaPropertyBrowser *property_browser)
270268
271269 widget = GTK_WIDGET (property_browser );
272270
273- property_browser -> details = G_TYPE_INSTANCE_GET_PRIVATE (property_browser ,
274- CAJA_TYPE_PROPERTY_BROWSER ,
275- CajaPropertyBrowserDetails );
271+ property_browser -> details = caja_property_browser_get_instance_private (property_browser );
276272
277273 property_browser -> details -> category = g_strdup ("patterns" );
278274 property_browser -> details -> category_type = CAJA_PROPERTY_PATTERN ;
0 commit comments