summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorWu Xiaotian <[email protected]>2019-06-26 15:40:39 +0800
committerraveit65 <[email protected]>2019-07-05 13:42:28 +0200
commit4f50b699b30245d1b9098111573f840a271a2011 (patch)
tree3806c071d2648075771d993f422afdbfa0ca54fa /plugins
parent8d22bd7590c3487df96f8dc3972173236c66de87 (diff)
downloadmate-settings-daemon-4f50b699b30245d1b9098111573f840a271a2011.tar.bz2
mate-settings-daemon-4f50b699b30245d1b9098111573f840a271a2011.tar.xz
plugins common: fix deprecated g_type_class_add_private
Diffstat (limited to 'plugins')
-rw-r--r--plugins/common/msd-osd-window.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/plugins/common/msd-osd-window.c b/plugins/common/msd-osd-window.c
index b800410..bc1ffb6 100644
--- a/plugins/common/msd-osd-window.c
+++ b/plugins/common/msd-osd-window.c
@@ -45,8 +45,6 @@
#define BG_ALPHA 0.75
-#define MSD_OSD_WINDOW_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), MSD_TYPE_OSD_WINDOW, MsdOsdWindowPrivate))
-
struct MsdOsdWindowPrivate
{
guint is_composited : 1;
@@ -63,7 +61,7 @@ enum {
static guint signals[LAST_SIGNAL] = { 0 };
-G_DEFINE_TYPE (MsdOsdWindow, msd_osd_window, GTK_TYPE_WINDOW)
+G_DEFINE_TYPE_WITH_PRIVATE (MsdOsdWindow, msd_osd_window, GTK_TYPE_WINDOW)
static gboolean
fade_timeout (MsdOsdWindow *window)
@@ -402,8 +400,6 @@ msd_osd_window_class_init (MsdOsdWindowClass *klass)
G_TYPE_POINTER);
gtk_widget_class_set_css_name (widget_class, "MsdOsdWindow");
-
- g_type_class_add_private (klass, sizeof (MsdOsdWindowPrivate));
}
/**
@@ -440,7 +436,7 @@ msd_osd_window_init (MsdOsdWindow *window)
{
GdkScreen *screen;
- window->priv = MSD_OSD_WINDOW_GET_PRIVATE (window);
+ window->priv = msd_osd_window_get_instance_private (window);
screen = gtk_widget_get_screen (GTK_WIDGET (window));