diff options
author | Matthias Clasen <mclasen@redhat.com> | 2020-08-13 19:49:02 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2020-08-14 07:03:27 -0400 |
commit | ae7cefd97dfbd37e23a4c604abe8a1cae25459c5 (patch) | |
tree | 5f6dc6c19a820ce2d5e5421ff3c91a5d7303d5a2 /gtk/gtkcellrendererpixbuf.c | |
parent | 35708162cc6d11a92c11f7c1e474e6d657f8d684 (diff) | |
download | gtk+-ae7cefd97dfbd37e23a4c604abe8a1cae25459c5.tar.gz |
Drop style class defines
We document the supported style classes by name,
not by macro name, and these macros don't really
add any value. Drop them for GTK 4.
Diffstat (limited to 'gtk/gtkcellrendererpixbuf.c')
-rw-r--r-- | gtk/gtkcellrendererpixbuf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkcellrendererpixbuf.c b/gtk/gtkcellrendererpixbuf.c index 09763afed5..e94331c1bc 100644 --- a/gtk/gtkcellrendererpixbuf.c +++ b/gtk/gtkcellrendererpixbuf.c @@ -423,7 +423,7 @@ gtk_cell_renderer_pixbuf_get_size (GtkCellRenderer *cell, context = gtk_widget_get_style_context (widget); gtk_style_context_save (context); - gtk_style_context_add_class (context, GTK_STYLE_CLASS_IMAGE); + gtk_style_context_add_class (context, "image"); gtk_icon_size_set_style_classes (gtk_style_context_get_node (context), priv->icon_size); icon_helper = create_icon_helper (cellpixbuf, widget); @@ -523,7 +523,7 @@ gtk_cell_renderer_pixbuf_snapshot (GtkCellRenderer *cell, context = gtk_widget_get_style_context (widget); gtk_style_context_save (context); - gtk_style_context_add_class (context, GTK_STYLE_CLASS_IMAGE); + gtk_style_context_add_class (context, "image"); gtk_icon_size_set_style_classes (gtk_style_context_get_node (context), priv->icon_size); is_expander = gtk_cell_renderer_get_is_expander (cell); |