projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
331f976
)
MenuShell: Typecheck the instance @ select_first()
author
Daniel Boles
<dboles.src@gmail.com>
Tue, 17 Apr 2018 18:49:24 +0000
(19:49 +0100)
committer
Daniel Boles
<dboles.src@gmail.com>
Tue, 17 Apr 2018 19:21:05 +0000
(20:21 +0100)
since this is public API and therefore might get junk passed to it.
gtk/gtkmenushell.c
patch
|
blob
|
history
diff --git
a/gtk/gtkmenushell.c
b/gtk/gtkmenushell.c
index 1126d94620519a031a6ded8ec4b584bf2631a9e8..a69bc0ada8d868f79641795c98c5bddbb3426590 100644
(file)
--- a/
gtk/gtkmenushell.c
+++ b/
gtk/gtkmenushell.c
@@
-1231,9
+1231,13
@@
void
gtk_menu_shell_select_first (GtkMenuShell *menu_shell,
gboolean search_sensitive)
{
- GtkMenuShellPrivate *priv
= menu_shell->priv
;
+ GtkMenuShellPrivate *priv;
GList *tmp_list;
+ g_return_if_fail (GTK_IS_MENU_SHELL (menu_shell));
+
+ priv = menu_shell->priv;
+
tmp_list = priv->children;
while (tmp_list)
{