Skip to content

Commit

Permalink
Revert "Show WebView widgets only when switching to them (#798)"
Browse files Browse the repository at this point in the history
This reverts commit 6a11feb.

See #800
  • Loading branch information
aidanholm committed Aug 14, 2019
1 parent 6a11feb commit 4276fca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 0 additions & 2 deletions widgets/notebook.c
Expand Up @@ -127,8 +127,6 @@ luaH_notebook_switch(lua_State *L)
gint i = luaL_checknumber(L, 2);
/* correct index */
if (i != -1) i--;
GtkWidget* page = gtk_notebook_get_nth_page(GTK_NOTEBOOK(w->widget), i);
gtk_widget_show(page);
gtk_notebook_set_current_page(GTK_NOTEBOOK(w->widget), i);
lua_pushnumber(L, gtk_notebook_get_current_page(GTK_NOTEBOOK(w->widget)));
return 1;
Expand Down
3 changes: 3 additions & 0 deletions widgets/webview.c
Expand Up @@ -1437,6 +1437,9 @@ widget_webview(lua_State *L, widget_t *w, luakit_token_t UNUSED(token))
"signal::open-window", G_CALLBACK(inspector_open_window_cb), w,
NULL);

/* show widgets */
gtk_widget_show(GTK_WIDGET(d->view));

return w;
}

Expand Down

0 comments on commit 4276fca

Please sign in to comment.