summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2019-01-08 01:26:58 +0000
committerMatthias Clasen <mclasen@redhat.com>2019-01-08 01:26:58 +0000
commitd79de8657bb758f18bd43074c64a208ca11a8d12 (patch)
treeecc1a0eb97d951ded2c6eea44ea494376082c06e
parent65311c84392d9208f46ecbe672996c2701aa58a9 (diff)
parentc8f91c3f2da0a4bbd9ce64407af5a9c2fa76a066 (diff)
downloadgtk+-d79de8657bb758f18bd43074c64a208ca11a8d12.tar.gz
Merge branch 'wip/jimmac/app-icon-helpers' into 'gtk-3-24'
Theme: add helper class names for Adwaita See merge request GNOME/gtk!449
-rw-r--r--gtk/gtkimage.c3
-rw-r--r--gtk/ui/gtkaboutdialog.ui3
-rw-r--r--gtk/ui/gtkappchooserwidget.ui7
3 files changed, 11 insertions, 2 deletions
diff --git a/gtk/gtkimage.c b/gtk/gtkimage.c
index 2932a0d797..5d6e7150cc 100644
--- a/gtk/gtkimage.c
+++ b/gtk/gtkimage.c
@@ -134,7 +134,8 @@
*
* # CSS nodes
*
- * GtkImage has a single CSS node with the name image.
+ * GtkImage has a single CSS node with the name image. The style classes
+ * may appear on image CSS nodes: .icon-dropshadow, .lowres-icon.
*/
diff --git a/gtk/ui/gtkaboutdialog.ui b/gtk/ui/gtkaboutdialog.ui
index 901c13f04d..adfbfb7af6 100644
--- a/gtk/ui/gtkaboutdialog.ui
+++ b/gtk/ui/gtkaboutdialog.ui
@@ -33,6 +33,9 @@
<property name="spacing">12</property>
<child>
<object class="GtkImage" id="logo_image">
+ <style>
+ <class name="icon-dropshadow"/>
+ </style>
<property name="visible">1</property>
<property name="icon-name">image-missing</property>
</object>
diff --git a/gtk/ui/gtkappchooserwidget.ui b/gtk/ui/gtkappchooserwidget.ui
index 6e158ec4d5..c984cf85bb 100644
--- a/gtk/ui/gtkappchooserwidget.ui
+++ b/gtk/ui/gtkappchooserwidget.ui
@@ -75,7 +75,12 @@
<object class="GtkCellRendererText" id="secondary_padding"/>
</child>
<child>
- <object class="GtkCellRendererPixbuf" id="app_icon"/>
+ <object class="GtkCellRendererPixbuf" id="app_icon">
+ <style>
+ <class name="lowres-icon"/>
+ </style>
+ <property name="stock-size">5</property>
+ </object>
<attributes>
<attribute name="gicon">1</attribute>
</attributes>