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:
Bastian Winkler 2012-06-03 01:40:41 +02:00
parent 1617344222
commit 4fee1aa22b

View File

@ -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;