diff options
author | Stefano Karapetsas <[email protected]> | 2013-07-31 13:04:07 +0200 |
---|---|---|
committer | Stefano Karapetsas <[email protected]> | 2013-07-31 13:04:07 +0200 |
commit | 12b8b8919663681329fbe7bedf9d92631bf44603 (patch) | |
tree | 1d92efe826c8c2dba8be3d32c1e64842024e3e76 /plugins/media-keys | |
parent | e8717a496368ae4ee74eb1891620271171d77597 (diff) | |
download | mate-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.c | 8 |
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)); } |