Commit 0ed7d947 authored by Alberts Muktupāvels's avatar Alberts Muktupāvels

panel-applet-frame-dbus: avoid deprecated g_type_class_add_private

parent 471e40a9
Pipeline #30360 failed with stage
in 2 minutes and 4 seconds
......@@ -34,16 +34,16 @@
#include "panel-applet-frame-dbus.h"
G_DEFINE_TYPE (PanelAppletFrameDBus,
panel_applet_frame_dbus,
PANEL_TYPE_APPLET_FRAME)
struct _PanelAppletFrameDBusPrivate
{
PanelAppletContainer *container;
GCancellable *bg_cancellable;
};
G_DEFINE_TYPE_WITH_PRIVATE (PanelAppletFrameDBus,
panel_applet_frame_dbus,
PANEL_TYPE_APPLET_FRAME)
/* Keep in sync with panel-applet.h. Uggh. */
typedef enum {
APPLET_FLAGS_NONE = 0,
......@@ -279,9 +279,7 @@ panel_applet_frame_dbus_init (PanelAppletFrameDBus *frame)
{
GtkWidget *container;
frame->priv = G_TYPE_INSTANCE_GET_PRIVATE (frame,
PANEL_TYPE_APPLET_FRAME_DBUS,
PanelAppletFrameDBusPrivate);
frame->priv = panel_applet_frame_dbus_get_instance_private (frame);
container = panel_applet_container_new ();
gtk_widget_show (container);
......@@ -315,8 +313,6 @@ panel_applet_frame_dbus_class_init (PanelAppletFrameDBusClass *class)
frame_class->popup_menu = panel_applet_frame_dbus_popup_menu;
frame_class->popup_edit_menu = panel_applet_frame_dbus_popup_edit_menu;
frame_class->change_orientation = panel_applet_frame_dbus_change_orientation;
g_type_class_add_private (class, sizeof (PanelAppletFrameDBusPrivate));
}
static void
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment