diff options
author | raveit65 <[email protected]> | 2016-06-14 19:16:42 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2016-06-15 09:45:26 +0200 |
commit | 591507cf56423d21567d5fdf5599831cd3a53470 (patch) | |
tree | af9b2f302463109ba0799cd0f818bd6ead408e6a /libmate-desktop/mate-rr-labeler.c | |
parent | bffa0cb4120e649519e54f98a8b5c8db3b8c9372 (diff) | |
download | mate-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.c | 4 |
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); |