mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-19 01:40:10 +00:00
Allow NULL as 'icon_widget' in gtk_tool_button_new()
This completes the patch of
commit b8ec73a52f
This commit is contained in:
parent
d3d4cf0e84
commit
1e2dabf31d
@ -943,7 +943,7 @@ gtk_tool_button_new (GtkWidget *icon_widget,
|
|||||||
{
|
{
|
||||||
GtkToolButton *button;
|
GtkToolButton *button;
|
||||||
|
|
||||||
g_return_val_if_fail (GTK_IS_MISC (icon_widget), NULL);
|
g_return_val_if_fail (icon_widget == NULL || GTK_IS_MISC (icon_widget), NULL);
|
||||||
|
|
||||||
button = g_object_new (GTK_TYPE_TOOL_BUTTON,
|
button = g_object_new (GTK_TYPE_TOOL_BUTTON,
|
||||||
"label", label,
|
"label", label,
|
||||||
|
Loading…
Reference in New Issue
Block a user