icon: Add _set_css_name back

This commit is contained in:
Timm Bäder 2017-06-15 21:14:25 +02:00 committed by Matthias Clasen
parent d5167eb61c
commit ed38b1c365
2 changed files with 11 additions and 0 deletions

View File

@ -86,3 +86,11 @@ gtk_icon_set_image (GtkIcon *self,
{
self->image = image;
}
void
gtk_icon_set_css_name (GtkIcon *self,
const char *css_name)
{
gtk_css_node_set_name (gtk_widget_get_css_node (GTK_WIDGET (self)),
g_intern_string (css_name));
}

View File

@ -53,6 +53,9 @@ GtkWidget * gtk_icon_new (const char *css_name);
void gtk_icon_set_image (GtkIcon *self,
GtkCssImageBuiltinType image);
void gtk_icon_set_css_name (GtkIcon *self,
const char *css_name);
G_END_DECLS
#endif /* __GTK_ICON_PRIVATE_H__ */