[gnome-boxes] wizard-source: Add tooltips for media entries
- From: Felipe Borges <felipeborges src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] wizard-source: Add tooltips for media entries
- Date: Sat, 27 Jul 2019 09:26:43 +0000 (UTC)
commit a64141d5cfc328ea8f0c67076b12b2714db42d3f
Author: Mayank Mandava <mayank mandava afterpay com>
Date: Sat Jul 27 09:26:33 2019 +0000
wizard-source: Add tooltips for media entries
Makes it possible to see full text for entries with long titles
Fixes #391
src/wizard-source.vala | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/src/wizard-source.vala b/src/wizard-source.vala
index f8bc956c..3a2b9b85 100644
--- a/src/wizard-source.vala
+++ b/src/wizard-source.vala
@@ -71,7 +71,10 @@ public override void get_preferred_height (out int minimum_height, out int natur
public string title {
get { return title_label.get_text (); }
- set { title_label.label = value; }
+ set {
+ title_label.label = value;
+ set_tooltip_text (value);
+ }
}
public string details {
@@ -118,6 +121,7 @@ public WizardMediaEntry (InstallerMedia media) {
// Translators: We show 'Live' tag next or below the name of live OS media or box based on such
media.
// http://en.wikipedia.org/wiki/Live_CD
title_label.label += " (" + _("Live") + ")";
+ set_tooltip_text (title_label.label);
if (media.os_media != null) {
var architecture = (media.os_media.architecture == "i386" || media.os_media.architecture ==
"i686") ?
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]