[gtk/wip/baedert/for-master] foo
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/baedert/for-master] foo
- Date: Tue, 4 Feb 2020 08:47:33 +0000 (UTC)
commit adc47db3215601be4ca280e0870cc1620b9bb5d7
Author: Timm Bäder <mail baedert org>
Date: Tue Feb 4 09:46:19 2020 +0100
foo
gtk/gtklevelbar.c | 18 ++----------------
1 file changed, 2 insertions(+), 16 deletions(-)
---
diff --git a/gtk/gtklevelbar.c b/gtk/gtklevelbar.c
index d399598c87..fc5ac8fb69 100644
--- a/gtk/gtklevelbar.c
+++ b/gtk/gtklevelbar.c
@@ -633,15 +633,8 @@ update_level_style_classes (GtkLevelBar *self)
for (i = 0; i < num_filled; i++)
{
GtkCssNode *node = gtk_widget_get_css_node (priv->block_widget[inverted ? num_blocks - 1 - i : i]);
- const GQuark *classes;
- guint n_classes;
- guint j;
-
- classes = gtk_css_node_list_classes (node, &n_classes);
-
- for (j = 0; j < n_classes; j++)
- gtk_css_node_remove_class (node, classes[j]);
+ gtk_css_node_set_classes (node, NULL);
gtk_css_node_add_class (node, g_quark_from_static_string ("filled"));
if (value_class)
@@ -651,15 +644,8 @@ update_level_style_classes (GtkLevelBar *self)
for (; i < num_blocks; i++)
{
GtkCssNode *node = gtk_widget_get_css_node (priv->block_widget[inverted ? num_blocks - 1 - i : i]);
- const GQuark *classes;
- guint n_classes;
- guint j;
-
- classes = gtk_css_node_list_classes (node, &n_classes);
-
- for (j = 0; j < n_classes; j++)
- gtk_css_node_remove_class (node, classes[j]);
+ gtk_css_node_set_classes (node, NULL);
gtk_css_node_add_class (node, g_quark_from_static_string ("empty"));
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]