diff options
author | Peter Hofmann <scm@uninformativ.de> | 2020-08-22 07:01:23 +0200 |
---|---|---|
committer | Peter Hofmann <scm@uninformativ.de> | 2020-08-22 07:01:23 +0200 |
commit | 1c1876c85aae28104bb9f65f283e18aa29e9876f (patch) | |
tree | f6d86b3370eaacc1315689a8abf8212abd3ee321 | |
parent | 74bdc3ed21d74d464cd94c5ca461b9ba7d10616b (diff) | |
download | lariza-1c1876c85aae28104bb9f65f283e18aa29e9876f.tar.gz |
Focus c->web_view on new tabs
-rw-r--r-- | CHANGES | 2 | ||||
-rw-r--r-- | browser.c | 1 |
2 files changed, 3 insertions, 0 deletions
@@ -5,6 +5,8 @@ next - Middle-click to open in a new tab has been improved. In certain conditions, the user's intention to open a new tab has been ignored and URLs haven been opened in the current tab. + - When new tabs are opened in the background, the web view is now + focused by default. v20.07 2020-07-19 [Fixed] @@ -203,6 +203,7 @@ client_new(const gchar *uri, WebKitWebView *related_wv, gboolean show, c->vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 0); gtk_box_pack_start(GTK_BOX(c->vbox), c->location, FALSE, FALSE, 0); gtk_box_pack_start(GTK_BOX(c->vbox), c->web_view, TRUE, TRUE, 0); + gtk_container_set_focus_child(GTK_CONTAINER(c->vbox), c->web_view); c->tabicon = gtk_image_new_from_icon_name("text-html", GTK_ICON_SIZE_SMALL_TOOLBAR); |