projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2509fe0
)
iconhelper: Handle GtkSymbolicPaintable
author
Matthias Clasen
<mclasen@redhat.com>
Sun, 22 Jan 2023 18:17:11 +0000
(13:17 -0500)
committer
Matthias Clasen
<mclasen@redhat.com>
Sun, 22 Jan 2023 18:18:18 +0000
(13:18 -0500)
If we are given a GtkSymbolicPaintable,
treat it as symbolic.
gtk/gtkiconhelper.c
patch
|
blob
|
history
diff --git
a/gtk/gtkiconhelper.c
b/gtk/gtkiconhelper.c
index 80cbca74743c101409eecb09e56cbeeca2213375..7fb845c1bdcf59ea6a2fd3453174ad7340793c3a 100644
(file)
--- a/
gtk/gtkiconhelper.c
+++ b/
gtk/gtkiconhelper.c
@@
-33,6
+33,7
@@
#include "gtksnapshot.h"
#include "gtkwidgetprivate.h"
#include "gdk/gdkprofilerprivate.h"
+#include "gtksymbolicpaintable.h"
struct _GtkIconHelper
{
@@
-123,7
+124,7
@@
gtk_icon_helper_load_paintable (GtkIconHelper *self,
{
case GTK_IMAGE_PAINTABLE:
paintable = g_object_ref (gtk_image_definition_get_paintable (self->def));
- symbolic =
FALSE
;
+ symbolic =
GTK_IS_SYMBOLIC_PAINTABLE (paintable)
;
break;
case GTK_IMAGE_ICON_NAME: