diff options
author | Jörg Frings-Fürst <debian@jff.email> | 2023-08-12 10:07:35 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff.email> | 2023-08-12 10:07:35 +0200 |
commit | d0aaad443a88968dc61172c050084d3d9faa7602 (patch) | |
tree | ba9356dd1659416b3217c19bbebda413b8786021 /src/ProfileBrowser.vala | |
parent | d443a3c2509889533ca812c163056bace396b586 (diff) |
New upstream version 0.32.2upstream/0.32.2
Diffstat (limited to 'src/ProfileBrowser.vala')
-rw-r--r-- | src/ProfileBrowser.vala | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/ProfileBrowser.vala b/src/ProfileBrowser.vala index 4532a20..1591fce 100644 --- a/src/ProfileBrowser.vala +++ b/src/ProfileBrowser.vala @@ -182,6 +182,8 @@ namespace Shotwell { label = new Gtk.Label(import_dir); label.halign = Gtk.Align.START; label.set_ellipsize(Pango.EllipsizeMode.END); + label.set_tooltip_text(import_dir); + label.set_selectable(true); grid.attach(label, 1, 0, 1, 1); label = new Gtk.Label(_("Data Folder")); @@ -193,6 +195,8 @@ namespace Shotwell { label.halign = Gtk.Align.START; label.hexpand = true; label.set_ellipsize(Pango.EllipsizeMode.END); + label.set_tooltip_text(profile.data_dir); + label.set_selectable(true); grid.attach(label, 1, 1, 1, 1); if (profile.id != Profile.SYSTEM && !profile.active) { @@ -231,7 +235,7 @@ namespace Shotwell { Object(orientation: Gtk.Orientation.VERTICAL, vexpand: true, hexpand: true); } - public signal void profile_activated(string? profile); + public signal void profile_activated(Profile profile); public override void constructed() { var scrollable = new Gtk.ScrolledWindow(null, null); @@ -243,11 +247,7 @@ namespace Shotwell { list_box.row_activated.connect((list_box, row) => { var index = row.get_index(); var profile = (Profile) ProfileManager.get_instance().get_item(index); - if (profile.id == Profile.SYSTEM) { - profile_activated(null); - } else { - profile_activated(profile.name); - } + profile_activated(profile); }); list_box.get_style_context().add_class("rich-list"); list_box.hexpand = true; |