projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1617344
)
grid: Add missing guard to gtk_grid_get_child_at()
author
Bastian Winkler
<buz@netbuz.org>
Sat, 2 Jun 2012 23:40:41 +0000
(
01:40
+0200)
committer
Bastian Winkler
<buz@netbuz.org>
Sat, 2 Jun 2012 23:50:28 +0000
(
01:50
+0200)
Add missing guard to make sure it's called with a GtkGrid argument.
https://bugzilla.gnome.org/show_bug.cgi?id=677363
gtk/gtkgrid.c
patch
|
blob
|
history
diff --git
a/gtk/gtkgrid.c
b/gtk/gtkgrid.c
index f8a281e7110802f76d5b5182012321981a75635d..cbc3c347907448ee8732e2e6555563c1f23b034c 100644
(file)
--- a/
gtk/gtkgrid.c
+++ b/
gtk/gtkgrid.c
@@
-1603,10
+1603,14
@@
gtk_grid_get_child_at (GtkGrid *grid,
gint left,
gint top)
{
- GtkGridPrivate *priv
= grid->priv
;
+ GtkGridPrivate *priv;
GtkGridChild *child;
GList *list;
+ g_return_val_if_fail (GTK_IS_GRID (grid), NULL);
+
+ priv = grid->priv;
+
for (list = priv->children; list; list = list->next)
{
child = list->data;