mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-28 14:31:10 +00:00
grid: Add missing guard to gtk_grid_get_child_at()
Add missing guard to make sure it's called with a GtkGrid argument. https://bugzilla.gnome.org/show_bug.cgi?id=677363
This commit is contained in:
parent
1617344222
commit
4fee1aa22b
@ -1603,10 +1603,14 @@ gtk_grid_get_child_at (GtkGrid *grid,
|
|||||||
gint left,
|
gint left,
|
||||||
gint top)
|
gint top)
|
||||||
{
|
{
|
||||||
GtkGridPrivate *priv = grid->priv;
|
GtkGridPrivate *priv;
|
||||||
GtkGridChild *child;
|
GtkGridChild *child;
|
||||||
GList *list;
|
GList *list;
|
||||||
|
|
||||||
|
g_return_val_if_fail (GTK_IS_GRID (grid), NULL);
|
||||||
|
|
||||||
|
priv = grid->priv;
|
||||||
|
|
||||||
for (list = priv->children; list; list = list->next)
|
for (list = priv->children; list; list = list->next)
|
||||||
{
|
{
|
||||||
child = list->data;
|
child = list->data;
|
||||||
|
Loading…
Reference in New Issue
Block a user