summaryrefslogtreecommitdiff
path: root/plugins/media-keys
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2013-07-31 13:04:07 +0200
committerStefano Karapetsas <[email protected]>2013-07-31 13:04:07 +0200
commit12b8b8919663681329fbe7bedf9d92631bf44603 (patch)
tree1d92efe826c8c2dba8be3d32c1e64842024e3e76 /plugins/media-keys
parente8717a496368ae4ee74eb1891620271171d77597 (diff)
downloadmate-settings-daemon-12b8b8919663681329fbe7bedf9d92631bf44603.tar.bz2
mate-settings-daemon-12b8b8919663681329fbe7bedf9d92631bf44603.tar.xz
Add GTK3 support in OSD window
Diffstat (limited to 'plugins/media-keys')
-rw-r--r--plugins/media-keys/msd-media-keys-window.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/plugins/media-keys/msd-media-keys-window.c b/plugins/media-keys/msd-media-keys-window.c
index 0bb43ce..9281a9e 100644
--- a/plugins/media-keys/msd-media-keys-window.c
+++ b/plugins/media-keys/msd-media-keys-window.c
@@ -645,7 +645,11 @@ draw_action_custom (MsdMediaKeysWindow *window,
}
static void
+#if GTK_CHECK_VERSION (3, 0, 0)
+msd_media_keys_window_draw_when_composited (MsdOsdWindow *osd_window,
+#else
msd_media_keys_window_expose_when_composited (MsdOsdWindow *osd_window,
+#endif
cairo_t *cr)
{
MsdMediaKeysWindow *window = MSD_MEDIA_KEYS_WINDOW (osd_window);
@@ -667,7 +671,11 @@ msd_media_keys_window_class_init (MsdMediaKeysWindowClass *klass)
{
MsdOsdWindowClass *osd_window_class = MSD_OSD_WINDOW_CLASS (klass);
+#if GTK_CHECK_VERSION (3, 0, 0)
+ osd_window_class->draw_when_composited = msd_media_keys_window_draw_when_composited;
+#else
osd_window_class->expose_when_composited = msd_media_keys_window_expose_when_composited;
+#endif
g_type_class_add_private (klass, sizeof (MsdMediaKeysWindowPrivate));
}