summaryrefslogtreecommitdiff
path: root/libslab/slab-section.c
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2014-01-24 16:01:49 +0100
committerStefano Karapetsas <[email protected]>2014-01-24 16:01:49 +0100
commit80c3d8ace4794481e711fb63e4eefd9f1f5cc1ef (patch)
treec9ca5dade16593759c5d2ced120c028e963ae7d6 /libslab/slab-section.c
parent31bfbb9e6aba9a1c82999823f7a3cd9dd6ec500b (diff)
downloadmate-control-center-80c3d8ace4794481e711fb63e4eefd9f1f5cc1ef.tar.bz2
mate-control-center-80c3d8ace4794481e711fb63e4eefd9f1f5cc1ef.tar.xz
libslab: Add GTK3 support
Diffstat (limited to 'libslab/slab-section.c')
-rw-r--r--libslab/slab-section.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libslab/slab-section.c b/libslab/slab-section.c
index 6fbf7006..3235c59a 100644
--- a/libslab/slab-section.c
+++ b/libslab/slab-section.c
@@ -52,15 +52,15 @@ slab_section_set_title_color (GtkWidget * widget)
{
case Style1:
gtk_widget_modify_fg (SLAB_SECTION (widget)->title, GTK_STATE_NORMAL,
- &widget->style->bg[GTK_STATE_SELECTED]);
+ &gtk_widget_get_style (widget)->bg[GTK_STATE_SELECTED]);
break;
case Style2:
if (SLAB_SECTION (widget)->selected)
gtk_widget_modify_fg (SLAB_SECTION (widget)->title, GTK_STATE_NORMAL,
- &widget->style->dark[GTK_STATE_SELECTED]);
+ &gtk_widget_get_style (widget)->dark[GTK_STATE_SELECTED]);
else
gtk_widget_modify_fg (SLAB_SECTION (widget)->title, GTK_STATE_NORMAL,
- &widget->style->text[GTK_STATE_INSENSITIVE]);
+ &gtk_widget_get_style (widget)->text[GTK_STATE_INSENSITIVE]);
break;
default:
g_assert_not_reached ();