summaryrefslogtreecommitdiff
path: root/libmate-desktop/mate-rr-labeler.c
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2016-06-14 19:16:42 +0200
committerraveit65 <[email protected]>2016-06-15 09:45:26 +0200
commit591507cf56423d21567d5fdf5599831cd3a53470 (patch)
treeaf9b2f302463109ba0799cd0f818bd6ead408e6a /libmate-desktop/mate-rr-labeler.c
parentbffa0cb4120e649519e54f98a8b5c8db3b8c9372 (diff)
downloadmate-desktop-591507cf56423d21567d5fdf5599831cd3a53470.tar.bz2
mate-desktop-591507cf56423d21567d5fdf5599831cd3a53470.tar.xz
GTK+-3 mate-rr-labeler: don't use deprecated gtk_widget_get_state
Diffstat (limited to 'libmate-desktop/mate-rr-labeler.c')
-rw-r--r--libmate-desktop/mate-rr-labeler.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libmate-desktop/mate-rr-labeler.c b/libmate-desktop/mate-rr-labeler.c
index 9424eb2..161be2f 100644
--- a/libmate-desktop/mate-rr-labeler.c
+++ b/libmate-desktop/mate-rr-labeler.c
@@ -467,7 +467,11 @@ create_label_window (MateRRLabeler *labeler, MateRROutputInfo *output, GdkColor
* theme's colors, since the label is always shown against a light
* pastel background. See bgo#556050
*/
+#if GTK_CHECK_VERSION(3,0,0)
+ gtk_widget_modify_fg (widget, gtk_widget_get_state_flags (widget), &black);
+#else
gtk_widget_modify_fg (widget, gtk_widget_get_state (widget), &black);
+#endif
gtk_container_add (GTK_CONTAINER (window), widget);