diff options
author | Pablo Barciela <[email protected]> | 2019-09-17 10:41:21 +0200 |
---|---|---|
committer | lukefromdc <[email protected]> | 2019-09-27 03:48:45 +0000 |
commit | 589f4ec1fa10b7a43eabb42c2d00d832acdd2002 (patch) | |
tree | 40573fa112a4b1cd95da5d0587f83822abb038e4 /applets/notification_area | |
parent | 07c80d7f0631f809d73c513e67c939c9487b85f1 (diff) | |
download | mate-panel-589f4ec1fa10b7a43eabb42c2d00d832acdd2002.tar.bz2 mate-panel-589f4ec1fa10b7a43eabb42c2d00d832acdd2002.tar.xz |
notification_area/main: avoid 'g_type_class_add_private'
Diffstat (limited to 'applets/notification_area')
-rw-r--r-- | applets/notification_area/main.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/applets/notification_area/main.c b/applets/notification_area/main.c index f99b11c7..6f52fd8d 100644 --- a/applets/notification_area/main.c +++ b/applets/notification_area/main.c @@ -66,7 +66,7 @@ struct _NaTrayAppletPrivate #endif }; -G_DEFINE_TYPE (NaTrayApplet, na_tray_applet, PANEL_TYPE_APPLET) +G_DEFINE_TYPE_WITH_PRIVATE (NaTrayApplet, na_tray_applet, PANEL_TYPE_APPLET) static void (*parent_class_realize) (GtkWidget *widget); static void (*parent_class_style_updated) (GtkWidget *widget); @@ -460,8 +460,6 @@ na_tray_applet_class_init (NaTrayAppletClass *class) 0, G_MAXINT, 0, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); - g_type_class_add_private (class, sizeof (NaTrayAppletPrivate)); - gtk_widget_class_set_css_name (widget_class, "na-tray-applet"); } @@ -471,8 +469,7 @@ na_tray_applet_init (NaTrayApplet *applet) MatePanelAppletOrient orient; AtkObject *atko; - applet->priv = G_TYPE_INSTANCE_GET_PRIVATE (applet, NA_TYPE_TRAY_APPLET, - NaTrayAppletPrivate); + applet->priv = na_tray_applet_get_instance_private (applet); #ifdef PROVIDE_WATCHER_SERVICE applet->priv->sn_watcher = sn_watcher_service_ref (); |