gtk_widget_hide(c->event);
} else if (position == 1) {
int i = 0;
- for (GList *l = g_list_first(completion); l && i<max; l=l->next, i++) {
+ for (GList *l = g_list_first(completion); l && i < max; l = l->next, i++) {
gtk_widget_hide(((Completion*)l->data)->event);
}
gtk_widget_show(vp.gui.compbox);
i = 0;
- for (GList *l = g_list_last(completion); l && i<max ;l=l->prev, i++) {
+ for (GList *l = g_list_last(completion); l && i < max; l = l->prev, i++) {
c = l->data;
gtk_widget_show_all(c->event);
}
gtk_widget_show_all(c->event);
} else if (position == items || position == 1) {
int i = 0;
- for (GList *l = g_list_last(completion); l && i<max; l=l->prev) {
+ for (GList *l = g_list_last(completion); l && i < max; l = l->prev) {
gtk_widget_hide(((Completion*)l->data)->event);
}
gtk_widget_show(vp.gui.compbox);
i = 0;
- for (GList *l = g_list_first(completion); l && i<max ;l=l->next, i++) {
+ for (GList *l = g_list_first(completion); l && i < max; l = l->next, i++) {
gtk_widget_show_all(((Completion*)l->data)->event);
}
}
command_cleanup();
setting_cleanup();
keybind_cleanup();
+ completion_clean();
}
static gboolean vp_hide_message(void)
/* init soup session */
#ifdef FEATURE_COOKIE
vp.net.soup_session = webkit_get_default_session();
- soup_session_remove_feature_by_type(vp.net.soup_session, soup_cookie_get_type());
soup_session_remove_feature_by_type(vp.net.soup_session, soup_cookie_jar_get_type());
#endif