projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1fd03ac
)
Don't crash when updating the icon on a `GtkScaleButton` with a non-`NULL` empty...
author
Sebastian Dröge
<sebastian@centricular.com>
Sun, 13 Feb 2022 09:16:32 +0000
(11:16 +0200)
committer
Sebastian Dröge
<sebastian@centricular.com>
Sun, 13 Feb 2022 09:16:32 +0000
(11:16 +0200)
gtk/gtkscalebutton.c
patch
|
blob
|
history
diff --git
a/gtk/gtkscalebutton.c
b/gtk/gtkscalebutton.c
index 2012cf49d241066157f0d7c1691e9c7e82a1bca2..311ea01192916d590b51d0cc5b4e55c3c31b65ef 100644
(file)
--- a/
gtk/gtkscalebutton.c
+++ b/
gtk/gtkscalebutton.c
@@
-884,7
+884,7
@@
gtk_scale_button_update_icon (GtkScaleButton *button)
const char *name;
guint num_icons;
- if (!priv->icon_list || priv->icon_list[0][0] == '\0')
+ if (!priv->icon_list ||
!priv->icon_list[0] ||
priv->icon_list[0][0] == '\0')
{
gtk_button_set_icon_name (GTK_BUTTON (priv->button), "image-missing");
return;