commit: f034a8b998d4f634c4490680fb658fd9e249a38a
parent: 97d4368eb546d838da6d4f7caff47d2a7394a97d
author: Chris Noxz <chris@noxz.tech>
date: Thu, 9 Mar 2023 12:09:43 +0100
change some variable names
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/browser.c b/browser.c
@@ -1027,11 +1027,11 @@ set_javascript_policy(struct Client *c, enum javascript_policy policy)
}
void
-set_window_title(gint idx)
+set_window_title(gint i)
{
GtkWidget *c; /* notebook child/page */
- if ((c = gtk_notebook_get_nth_page(GTK_NOTEBOOK(mw.nb), idx)) == NULL)
+ if ((c = gtk_notebook_get_nth_page(GTK_NOTEBOOK(mw.nb), i)) == NULL)
return;
gtk_window_set_title(GTK_WINDOW(mw.win),
@@ -1047,13 +1047,13 @@ set_window_title(gint idx)
void
show_web_view(struct Client *c)
{
- gint idx;
+ gint i;
gtk_widget_show_all(mw.win);
if (c->focus_new_tab) {
- if ((idx = gtk_notebook_page_num(GTK_NOTEBOOK(mw.nb), c->vbx)) != -1)
- gtk_notebook_set_current_page(GTK_NOTEBOOK(mw.nb), idx);
+ if ((i = gtk_notebook_page_num(GTK_NOTEBOOK(mw.nb), c->vbx)) != -1)
+ gtk_notebook_set_current_page(GTK_NOTEBOOK(mw.nb), i);
gtk_widget_grab_focus(c->wv);
}
}