diff options
author | Matthias Clasen <mclasen@redhat.com> | 2019-01-08 01:26:58 +0000 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2019-01-08 01:26:58 +0000 |
commit | d79de8657bb758f18bd43074c64a208ca11a8d12 (patch) | |
tree | ecc1a0eb97d951ded2c6eea44ea494376082c06e | |
parent | 65311c84392d9208f46ecbe672996c2701aa58a9 (diff) | |
parent | c8f91c3f2da0a4bbd9ce64407af5a9c2fa76a066 (diff) | |
download | gtk+-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.c | 3 | ||||
-rw-r--r-- | gtk/ui/gtkaboutdialog.ui | 3 | ||||
-rw-r--r-- | gtk/ui/gtkappchooserwidget.ui | 7 |
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> |