[gtk+/wip/baedert/drawing: 171/371] icon: Add _set_css_name back
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/baedert/drawing: 171/371] icon: Add _set_css_name back
- Date: Sun, 16 Jul 2017 15:36:11 +0000 (UTC)
commit dcdcfef5109857a0a806f4ebaa50219a649a2eba
Author: Timm Bäder <mail baedert org>
Date: Thu Jun 15 21:14:25 2017 +0200
icon: Add _set_css_name back
gtk/gtkicon.c | 8 ++++++++
gtk/gtkiconprivate.h | 3 +++
2 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkicon.c b/gtk/gtkicon.c
index 7b5327a..307bb06 100644
--- a/gtk/gtkicon.c
+++ b/gtk/gtkicon.c
@@ -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));
+}
diff --git a/gtk/gtkiconprivate.h b/gtk/gtkiconprivate.h
index dcbb6d7..b979e50 100644
--- a/gtk/gtkiconprivate.h
+++ b/gtk/gtkiconprivate.h
@@ -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__ */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]