summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorChristian Dywan <christian@twotoasts.de>2019-03-04 22:25:26 +0100
committerGitHub <noreply@github.com>2019-03-04 22:25:26 +0100
commit83159193bfbdd9a1afab6e4e03d972138a540126 (patch)
tree4e5ceaa116cbc1623479fa5024f4ac2856acf8dc /core
parent0c5820ffe24295c0550a27537fe34ebc9ae447e8 (diff)
downloadmidori-git-83159193bfbdd9a1afab6e4e03d972138a540126.tar.gz
Show a volume icon in tabs that are playing music (#285)
The icon appears in addition to the favicon (and close button).
Diffstat (limited to 'core')
-rw-r--r--core/tally.vala3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/tally.vala b/core/tally.vala
index 1c263aae..1fdc65df 100644
--- a/core/tally.vala
+++ b/core/tally.vala
@@ -42,6 +42,8 @@ namespace Midori {
[GtkChild]
Favicon favicon;
[GtkChild]
+ Gtk.Image audio;
+ [GtkChild]
Gtk.Button close;
public Tally (Tab tab) {
@@ -62,6 +64,7 @@ namespace Midori {
favicon.visible = !tab.is_loading;
spinner.visible = !favicon.visible;
});
+ tab.bind_property ("is-playing-audio", audio, "visible", BindingFlags.SYNC_CREATE);
// Pinned tab style: icon only
tab.notify["pinned"].connect ((pspec) => {