[Xfce4-commits] [xfce/xfce4-panel] 03/03: Drop instance of deprecated g_type_class_add_private

noreply at xfce.org noreply at xfce.org
Tue Oct 23 23:50:30 CEST 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 eb09b6e5004173c50f8e1e7058aa0e8ed19ed2d5
Author: Simon Steinbeiss <simon.steinbeiss at elfenbeinturm.at>
Date:   Tue Oct 23 23:45:28 2018 +0200

    Drop instance of deprecated g_type_class_add_private
---
 panel/panel-base-window.c | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/panel/panel-base-window.c b/panel/panel-base-window.c
index 3a6bdfc..5ddc26c 100644
--- a/panel/panel-base-window.c
+++ b/panel/panel-base-window.c
@@ -107,7 +107,7 @@ struct _PanelBaseWindowPrivate
 
 
 
-G_DEFINE_TYPE (PanelBaseWindow, panel_base_window, GTK_TYPE_WINDOW)
+G_DEFINE_TYPE_WITH_PRIVATE (PanelBaseWindow, panel_base_window, GTK_TYPE_WINDOW)
 
 
 
@@ -117,9 +117,6 @@ panel_base_window_class_init (PanelBaseWindowClass *klass)
   GObjectClass   *gobject_class;
   GtkWidgetClass *gtkwidget_class;
 
-  /* add private data */
-  g_type_class_add_private (klass, sizeof (PanelBaseWindowPrivate));
-
   gobject_class = G_OBJECT_CLASS (klass);
   gobject_class->get_property = panel_base_window_get_property;
   gobject_class->set_property = panel_base_window_set_property;
@@ -198,7 +195,7 @@ panel_base_window_init (PanelBaseWindow *window)
 {
   GtkStyleContext *context;
 
-  window->priv = G_TYPE_INSTANCE_GET_PRIVATE (window, PANEL_TYPE_BASE_WINDOW, PanelBaseWindowPrivate);
+  window->priv = panel_base_window_get_instance_private (window);
 
   window->is_composited = FALSE;
   window->background_style = PANEL_BG_STYLE_NONE;

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


More information about the Xfce4-commits mailing list