diff options
author | Daniel Boles <dboles.src@gmail.com> | 2018-04-17 19:49:24 +0100 |
---|---|---|
committer | Daniel Boles <dboles.src@gmail.com> | 2018-04-17 21:07:18 +0100 |
commit | bcc539ca0712be30b0d5d5ef05d6c0580ca4ba46 (patch) | |
tree | 69bc82d42a3fe1ac3e9aebb8cbbb3cfbbb33d8b0 /gtk/gtkmenushell.c | |
parent | 60b4a3869a7e4b23c3d902b410d7a15ed414e334 (diff) | |
download | gtk+-bcc539ca0712be30b0d5d5ef05d6c0580ca4ba46.tar.gz |
MenuShell: Typecheck the instance @ select_first()
since this is public API and therefore might get junk passed to it.
Diffstat (limited to 'gtk/gtkmenushell.c')
-rw-r--r-- | gtk/gtkmenushell.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gtk/gtkmenushell.c b/gtk/gtkmenushell.c index 104281b627..407d372937 100644 --- a/gtk/gtkmenushell.c +++ b/gtk/gtkmenushell.c @@ -1462,10 +1462,14 @@ void gtk_menu_shell_select_first (GtkMenuShell *menu_shell, gboolean search_sensitive) { - GtkMenuShellPrivate *priv = menu_shell->priv; + GtkMenuShellPrivate *priv; GtkWidget *to_select = NULL; GList *tmp_list; + g_return_if_fail (GTK_IS_MENU_SHELL (menu_shell)); + + priv = menu_shell->priv; + tmp_list = priv->children; while (tmp_list) { |