diff options
author | Timm Bäder <mail@baedert.org> | 2020-02-06 17:32:26 +0100 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2020-02-07 13:16:45 -0500 |
commit | 655711fef29570254477864e25f0719a7762b2a7 (patch) | |
tree | a3ab0f243d95840149f98bfaf58371020604d96c /gtk/gtkmenusectionbox.c | |
parent | 69fa15981c1c8f44ea285c7928a89450cd842d83 (diff) | |
download | gtk+-655711fef29570254477864e25f0719a7762b2a7.tar.gz |
Rename gtk_widget{get,set,has}_style_class to _css_class
We want to use css instead of style everywhere now.
Diffstat (limited to 'gtk/gtkmenusectionbox.c')
-rw-r--r-- | gtk/gtkmenusectionbox.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/gtk/gtkmenusectionbox.c b/gtk/gtkmenusectionbox.c index e2bfc99e40..107355eb24 100644 --- a/gtk/gtkmenusectionbox.c +++ b/gtk/gtkmenusectionbox.c @@ -350,13 +350,13 @@ gtk_menu_section_box_insert_func (GtkMenuTrackerItem *item, { g_object_bind_property (item, "verb-icon", widget, "icon", G_BINDING_SYNC_CREATE); g_object_set (widget, "iconic", TRUE, NULL); - gtk_widget_add_style_class (widget, "flat"); + gtk_widget_add_css_class (widget, "flat"); } else if (box->circular) { g_object_bind_property (item, "verb-icon", widget, "icon", G_BINDING_SYNC_CREATE); g_object_set (widget, "iconic", TRUE, NULL); - gtk_widget_add_style_class (widget, "circular"); + gtk_widget_add_css_class (widget, "circular"); } else g_object_bind_property (item, "icon", widget, "icon", G_BINDING_SYNC_CREATE); @@ -556,8 +556,8 @@ gtk_menu_section_box_new_section (GtkMenuTrackerItem *item, { gtk_box_set_homogeneous (box->item_box, TRUE); gtk_orientable_set_orientation (GTK_ORIENTABLE (box->item_box), GTK_ORIENTATION_HORIZONTAL); - gtk_widget_add_style_class (GTK_WIDGET (box->item_box), "linked"); - gtk_widget_add_style_class (GTK_WIDGET (box->item_box), "horizontal-buttons"); + gtk_widget_add_css_class (GTK_WIDGET (box->item_box), "linked"); + gtk_widget_add_css_class (GTK_WIDGET (box->item_box), "horizontal-buttons"); box->iconic = TRUE; if (text_direction) @@ -580,7 +580,7 @@ gtk_menu_section_box_new_section (GtkMenuTrackerItem *item, box->inline_buttons = TRUE; gtk_orientable_set_orientation (GTK_ORIENTABLE (box->item_box), GTK_ORIENTATION_HORIZONTAL); - gtk_widget_add_style_class (GTK_WIDGET (box->item_box), "inline-buttons"); + gtk_widget_add_css_class (GTK_WIDGET (box->item_box), "inline-buttons"); spacer = gtk_builtin_icon_new ("none"); gtk_container_add (GTK_CONTAINER (box->item_box), spacer); @@ -605,7 +605,7 @@ gtk_menu_section_box_new_section (GtkMenuTrackerItem *item, { gtk_box_set_homogeneous (box->item_box, TRUE); gtk_orientable_set_orientation (GTK_ORIENTABLE (box->item_box), GTK_ORIENTATION_HORIZONTAL); - gtk_widget_add_style_class (GTK_WIDGET (box->item_box), "circular-buttons"); + gtk_widget_add_css_class (GTK_WIDGET (box->item_box), "circular-buttons"); box->circular = TRUE; } @@ -623,7 +623,7 @@ gtk_menu_section_box_new_section (GtkMenuTrackerItem *item, title = gtk_label_new (label); g_object_bind_property (item, "label", title, "label", G_BINDING_SYNC_CREATE); - gtk_widget_add_style_class (title, GTK_STYLE_CLASS_SEPARATOR); + gtk_widget_add_css_class (title, GTK_STYLE_CLASS_SEPARATOR); gtk_widget_set_halign (title, GTK_ALIGN_START); gtk_container_add (GTK_CONTAINER (box->separator), title); |