[Xfce4-commits] [xfce/xfce4-panel] 01/02: external: Fix deprecated instance private data API

noreply at xfce.org noreply at xfce.org
Sun Dec 23 00:45:57 CET 2018


This is an automated email from the git hooks/post-receive script.

a   j   b       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 3255fe7a8b6da4e8a19e476113306e15fc72cef6
Author: Alistair Buxton <a.j.buxton at gmail.com>
Date:   Sat Dec 22 22:41:08 2018 +0000

    external: Fix deprecated instance private data API
---
 panel/panel-plugin-external.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/panel/panel-plugin-external.c b/panel/panel-plugin-external.c
index 6c3b6dc..beebf0b 100644
--- a/panel/panel-plugin-external.c
+++ b/panel/panel-plugin-external.c
@@ -141,7 +141,9 @@ enum
 
 
 G_DEFINE_ABSTRACT_TYPE_WITH_CODE (PanelPluginExternal, panel_plugin_external, GTK_TYPE_SOCKET,
-  G_IMPLEMENT_INTERFACE (XFCE_TYPE_PANEL_PLUGIN_PROVIDER, panel_plugin_external_provider_init))
+                                  G_ADD_PRIVATE (PanelPluginExternal)
+                                  G_IMPLEMENT_INTERFACE (XFCE_TYPE_PANEL_PLUGIN_PROVIDER,
+                                                         panel_plugin_external_provider_init))
 
 
 
@@ -152,8 +154,6 @@ panel_plugin_external_class_init (PanelPluginExternalClass *klass)
   GtkWidgetClass *gtkwidget_class;
   GtkSocketClass *gtksocket_class;
 
-  g_type_class_add_private (klass, sizeof (PanelPluginExternalPrivate));
-
   gobject_class = G_OBJECT_CLASS (klass);
   gobject_class->finalize = panel_plugin_external_finalize;
   gobject_class->set_property = panel_plugin_external_set_property;
@@ -197,7 +197,7 @@ panel_plugin_external_class_init (PanelPluginExternalClass *klass)
 static void
 panel_plugin_external_init (PanelPluginExternal *external)
 {
-  external->priv = G_TYPE_INSTANCE_GET_PRIVATE (external, PANEL_TYPE_PLUGIN_EXTERNAL, PanelPluginExternalPrivate);
+  external->priv = panel_plugin_external_get_instance_private (external);
 
   external->module = NULL;
   external->show_configure = FALSE;

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list