summaryrefslogtreecommitdiff
path: root/openbox
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2007-03-02 22:11:46 +0000
committerDana Jansens <danakj@orodu.net>2007-03-02 22:11:46 +0000
commit07fe0980bec54cb787579a6b2633309d20fc083b (patch)
tree3106c23254cee664db4e3ed503905de382ce57ee /openbox
parentde383f35f792e05259da42263fb8b1dba7d2a3f5 (diff)
declare variables at the beginning of blocks, because it is nice to do so. and polite?
Diffstat (limited to 'openbox')
-rw-r--r--openbox/menuframe.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/openbox/menuframe.c b/openbox/menuframe.c
index a3aee8be..e9fc32da 100644
--- a/openbox/menuframe.c
+++ b/openbox/menuframe.c
@@ -676,13 +676,14 @@ void menu_frame_hide(ObMenuFrame *self)
void menu_frame_hide_all()
{
+ GList *it;
+
if (config_submenu_show_delay) {
/* remove any submenu open requests */
ob_main_loop_timeout_remove(ob_main_loop,
menu_entry_frame_submenu_timeout);
}
- GList *it = g_list_last(menu_frame_visible);
- if (it)
+ if ((it = g_list_last(menu_frame_visible)))
menu_frame_hide(it->data);
}