summaryrefslogtreecommitdiff
path: root/applets/notification_area
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2019-09-17 10:37:25 +0200
committerlukefromdc <[email protected]>2019-09-27 03:48:45 +0000
commit07c80d7f0631f809d73c513e67c939c9487b85f1 (patch)
treea3cb93fd27ea36ac8b8f88cbc13c0574dce68b25 /applets/notification_area
parent8146d0c4f841d45a812a0408028b7af167428c6b (diff)
downloadmate-panel-07c80d7f0631f809d73c513e67c939c9487b85f1.tar.bz2
mate-panel-07c80d7f0631f809d73c513e67c939c9487b85f1.tar.xz
na-tray: avoid 'g_type_class_add_private'
Diffstat (limited to 'applets/notification_area')
-rw-r--r--applets/notification_area/system-tray/na-tray.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/applets/notification_area/system-tray/na-tray.c b/applets/notification_area/system-tray/na-tray.c
index bbf380c2..8cf1b9ec 100644
--- a/applets/notification_area/system-tray/na-tray.c
+++ b/applets/notification_area/system-tray/na-tray.c
@@ -93,6 +93,7 @@ static void na_tray_style_updated (NaHost *host,
static void na_tray_force_redraw (NaHost *host);
G_DEFINE_TYPE_WITH_CODE (NaTray, na_tray, G_TYPE_OBJECT,
+ G_ADD_PRIVATE (NaTray)
G_IMPLEMENT_INTERFACE (GTK_TYPE_ORIENTABLE, NULL)
G_IMPLEMENT_INTERFACE (NA_TYPE_HOST, na_host_init))
@@ -411,7 +412,7 @@ na_tray_init (NaTray *tray)
{
NaTrayPrivate *priv;
- priv = tray->priv = G_TYPE_INSTANCE_GET_PRIVATE (tray, NA_TYPE_TRAY, NaTrayPrivate);
+ priv = tray->priv = na_tray_get_instance_private (tray);
priv->screen = NULL;
priv->orientation = GTK_ORIENTATION_HORIZONTAL;
@@ -635,8 +636,6 @@ na_tray_class_init (NaTrayClass *klass)
G_PARAM_STATIC_NAME |
G_PARAM_STATIC_NICK |
G_PARAM_STATIC_BLURB));
-
- g_type_class_add_private (gobject_class, sizeof (NaTrayPrivate));
}
NaHost *