projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f78598d
)
menubar: Don't crash when cycling through menubars
author
Timm Bäder
<mail@baedert.org>
Thu, 29 Mar 2018 06:32:51 +0000
(08:32 +0200)
committer
Timm Bäder
<mail@baedert.org>
Fri, 30 Mar 2018 21:15:04 +0000
(23:15 +0200)
gtk/gtkmenubar.c
patch
|
blob
|
history
diff --git
a/gtk/gtkmenubar.c
b/gtk/gtkmenubar.c
index 170c2722dceb0e788f1ba7d56a5270afa1be29a1..27e444057edb5bbc6334d30a43afa41d62b00938 100644
(file)
--- a/
gtk/gtkmenubar.c
+++ b/
gtk/gtkmenubar.c
@@
-584,7
+584,7
@@
_gtk_menu_bar_cycle_focus (GtkMenuBar *menubar,
found = g_ptr_array_find (menubars, menubar, &index);
- if (found && index < menubars->len)
+ if (found && index < menubars->len
- 1
)
{
GtkWidget *next = g_ptr_array_index (menubars, index + 1);
GtkMenuShell *new_menushell = GTK_MENU_SHELL (next);