[Xfce4-commits] [xfce/xfce4-panel] 01/01: Revert replacing of G_TYPE_INSTANCE_GET_PRIVATE macro (Bug #14860)
noreply at xfce.org
noreply at xfce.org
Mon Nov 12 22:33:08 CET 2018
This is an automated email from the git hooks/post-receive script.
o c h o s i p u s h e d a c o m m i t t o b r a n c h m a s t e r
in repository xfce/xfce4-panel.
commit 8cda5e440ab2f0bf0d43e4169c04aa9a7f535fa7
Author: Simon Steinbeiss <simon.steinbeiss at elfenbeinturm.at>
Date: Sat Nov 10 23:44:28 2018 +0100
Revert replacing of G_TYPE_INSTANCE_GET_PRIVATE macro (Bug #14860)
---
libxfce4panel/xfce-panel-plugin.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/libxfce4panel/xfce-panel-plugin.c b/libxfce4panel/xfce-panel-plugin.c
index dff6935..3d1307f 100644
--- a/libxfce4panel/xfce-panel-plugin.c
+++ b/libxfce4panel/xfce-panel-plugin.c
@@ -218,6 +218,8 @@ xfce_panel_plugin_class_init (XfcePanelPluginClass *klass)
GObjectClass *gobject_class;
GtkWidgetClass *gtkwidget_class;
+ g_type_class_add_private (klass, sizeof (XfcePanelPluginPrivate));
+
klass->construct = NULL;
gobject_class = G_OBJECT_CLASS (klass);
@@ -679,7 +681,7 @@ xfce_panel_plugin_class_init (XfcePanelPluginClass *klass)
static void
xfce_panel_plugin_init (XfcePanelPlugin *plugin)
{
- plugin->priv = xfce_panel_plugin_get_instance_private (plugin);
+ plugin->priv = G_TYPE_INSTANCE_GET_PRIVATE (plugin, XFCE_TYPE_PANEL_PLUGIN, XfcePanelPluginPrivate);
plugin->priv->name = NULL;
plugin->priv->display_name = NULL;
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list