summaryrefslogtreecommitdiff
path: root/plugins/common/msd-osd-window.h
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2016-06-01 13:12:40 +0200
committerraveit65 <[email protected]>2016-06-05 10:57:55 +0200
commitb2c6ddcb6778322c826178a033457ead91f9c0e8 (patch)
treeb1b8e54805848925684b7924813741a153e99bfb /plugins/common/msd-osd-window.h
parent1e8a8409cc45028a342bbbd9fa33266588c74240 (diff)
downloadmate-settings-daemon-b2c6ddcb6778322c826178a033457ead91f9c0e8.tar.bz2
mate-settings-daemon-b2c6ddcb6778322c826178a033457ead91f9c0e8.tar.xz
GTK+3 media-keys: Port OSD to GtkStyleContext
- Port OSD to GtkStyleContext - Port style_set to style_updated - fixes also a -Wincompatible-pointer-types warning - Use correct argument to GtkStyle functions taken from: https://git.gnome.org/browse/gnome-settings-daemon/commit/?h=gnome-3-0&id=f6e55cb https://git.gnome.org/browse/gnome-settings-daemon/commit/?id=45a88f2 GTK+3 media-keys: fix deprecated gtk_style_context_get_background_color taken from mate-notification-daemon GTK+3 media-keys: do not use hardcoded colors for osd progressbar - If we use the OSD style class let the themes handle that. - drop useless color functions inspired from: https://git.gnome.org/browse/gnome-settings-daemon/commit/?id=a0cefe6
Diffstat (limited to 'plugins/common/msd-osd-window.h')
-rw-r--r--plugins/common/msd-osd-window.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/common/msd-osd-window.h b/plugins/common/msd-osd-window.h
index fd33d36..52c464f 100644
--- a/plugins/common/msd-osd-window.h
+++ b/plugins/common/msd-osd-window.h
@@ -92,8 +92,10 @@ void msd_osd_window_draw_rounded_rectangle (cairo_t *cr,
gdouble width,
gdouble height);
+#if !GTK_CHECK_VERSION (3, 0, 0)
void msd_osd_window_color_reverse (const GdkColor *a,
GdkColor *b);
+#endif
#ifdef __cplusplus
}