summaryrefslogtreecommitdiff
path: root/demos/gtk-demo/bluroverlay.c
diff options
context:
space:
mode:
Diffstat (limited to 'demos/gtk-demo/bluroverlay.c')
-rw-r--r--demos/gtk-demo/bluroverlay.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/demos/gtk-demo/bluroverlay.c b/demos/gtk-demo/bluroverlay.c
index 6436b3cad4..3a7585ff09 100644
--- a/demos/gtk-demo/bluroverlay.c
+++ b/demos/gtk-demo/bluroverlay.c
@@ -132,10 +132,10 @@ blur_overlay_child_update_style_classes (BlurOverlay *overlay,
gboolean is_left, is_right, is_top, is_bottom;
gboolean has_left, has_right, has_top, has_bottom;
- has_left = gtk_widget_has_css_class (child, GTK_STYLE_CLASS_LEFT);
- has_right = gtk_widget_has_css_class (child, GTK_STYLE_CLASS_RIGHT);
- has_top = gtk_widget_has_css_class (child, GTK_STYLE_CLASS_TOP);
- has_bottom = gtk_widget_has_css_class (child, GTK_STYLE_CLASS_BOTTOM);
+ has_left = gtk_widget_has_css_class (child, "left");
+ has_right = gtk_widget_has_css_class (child, "right");
+ has_top = gtk_widget_has_css_class (child, "top");
+ has_bottom = gtk_widget_has_css_class (child, "bottom");
is_left = is_right = is_top = is_bottom = FALSE;
@@ -158,24 +158,24 @@ blur_overlay_child_update_style_classes (BlurOverlay *overlay,
is_bottom = (child_allocation->y + child_allocation->height == height);
if (has_left && !is_left)
- gtk_widget_remove_css_class (child, GTK_STYLE_CLASS_LEFT);
+ gtk_widget_remove_css_class (child, "left");
else if (!has_left && is_left)
- gtk_widget_add_css_class (child, GTK_STYLE_CLASS_LEFT);
+ gtk_widget_add_css_class (child, "left");
if (has_right && !is_right)
- gtk_widget_remove_css_class (child, GTK_STYLE_CLASS_RIGHT);
+ gtk_widget_remove_css_class (child, "right");
else if (!has_right && is_right)
- gtk_widget_add_css_class (child, GTK_STYLE_CLASS_RIGHT);
+ gtk_widget_add_css_class (child, "right");
if (has_top && !is_top)
- gtk_widget_remove_css_class (child, GTK_STYLE_CLASS_TOP);
+ gtk_widget_remove_css_class (child, "top");
else if (!has_top && is_top)
- gtk_widget_add_css_class (child, GTK_STYLE_CLASS_TOP);
+ gtk_widget_add_css_class (child, "top");
if (has_bottom && !is_bottom)
- gtk_widget_remove_css_class (child, GTK_STYLE_CLASS_BOTTOM);
+ gtk_widget_remove_css_class (child, "bottom");
else if (!has_bottom && is_bottom)
- gtk_widget_add_css_class (child, GTK_STYLE_CLASS_BOTTOM);
+ gtk_widget_add_css_class (child, "bottom");
}
static void