diff options
author | Wu Xiaotian <[email protected]> | 2019-07-01 16:23:36 +0800 |
---|---|---|
committer | raveit65 <[email protected]> | 2019-07-27 16:11:38 +0200 |
commit | a3446445931ca2177b708ef4893e4f8de20484f0 (patch) | |
tree | d705a95e3014fd90fbff654c53cb1c526e6c39c2 /plugins/mouse/msd-mouse-manager.c | |
parent | 962c75b3cf9d301227d7f584fa913ef21f28bd78 (diff) | |
download | mate-settings-daemon-a3446445931ca2177b708ef4893e4f8de20484f0.tar.bz2 mate-settings-daemon-a3446445931ca2177b708ef4893e4f8de20484f0.tar.xz |
plugins mouse: fix deprecated g_type_class_add_private
Diffstat (limited to 'plugins/mouse/msd-mouse-manager.c')
-rw-r--r-- | plugins/mouse/msd-mouse-manager.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/plugins/mouse/msd-mouse-manager.c b/plugins/mouse/msd-mouse-manager.c index e0a0a29..9ce62cb 100644 --- a/plugins/mouse/msd-mouse-manager.c +++ b/plugins/mouse/msd-mouse-manager.c @@ -48,8 +48,6 @@ #include "msd-mouse-manager.h" #include "msd-input-helper.h" -#define MSD_MOUSE_MANAGER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), MSD_TYPE_MOUSE_MANAGER, MsdMouseManagerPrivate)) - /* Keys with same names for both touchpad and mouse */ #define KEY_LEFT_HANDED "left-handed" /* a boolean for mouse, an enum for touchpad */ #define KEY_MOTION_ACCELERATION "motion-acceleration" @@ -115,7 +113,7 @@ static void set_tap_to_click_synaptics (XDeviceInfo *device_info gint three_finger_tap); -G_DEFINE_TYPE (MsdMouseManager, msd_mouse_manager, G_TYPE_OBJECT) +G_DEFINE_TYPE_WITH_PRIVATE (MsdMouseManager, msd_mouse_manager, G_TYPE_OBJECT) static gpointer manager_object = NULL; @@ -125,8 +123,6 @@ msd_mouse_manager_class_init (MsdMouseManagerClass *klass) GObjectClass *object_class = G_OBJECT_CLASS (klass); object_class->finalize = msd_mouse_manager_finalize; - - g_type_class_add_private (klass, sizeof (MsdMouseManagerPrivate)); } static void @@ -1590,7 +1586,7 @@ touchpad_callback (GSettings *settings, static void msd_mouse_manager_init (MsdMouseManager *manager) { - manager->priv = MSD_MOUSE_MANAGER_GET_PRIVATE (manager); + manager->priv = msd_mouse_manager_get_instance_private (manager); } static gboolean |