Diff
Differences From Artifact [4f149ec26e]:
- File channels/ui_cht.py — part of check-in [614c2f6690] at 2020-05-13 17:44:46 on branch trunk — Add channel icon above title/link in toolbar. (user: mario, size: 1272) [annotate] [blame] [check-ins using]
To Artifact [b84a26e358]:
- File channels/ui_cht.py — part of check-in [7aa5d1f8dd] at 2020-05-15 19:00:44 on branch trunk — ui change title bar: use gtk.STOCK_DIRECTORY as fallback when no png: icon is present (bookmarks channel) (user: mario, size: 1363) [annotate] [blame] [check-ins using]
34 35 36 37 38 39 40 41 | 34 35 36 37 38 39 40 41 42 43 44 | + + + | domain = re.sub("^.+?//|/.+$", "", url) self.label.set_markup("<big><b>{}</b></big>\n<a href='{}'>{}</a>".format(title, url, domain)) # icon (since 2.2.2) if self.icon and meta.get("png"): pixbuf = uikit.pixbuf(meta["png"]) pixbuf = pixbuf.scale_simple(32, 32, gtk.gdk.INTERP_BILINEAR) self.icon.set_from_pixbuf(pixbuf) elif self.icon: self.icon.set_from_stock(gtk.STOCK_DIRECTORY, size=5) |