diff options
author | Jörg Frings-Fürst <debian@jff.email> | 2023-08-12 10:08:29 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff.email> | 2023-08-12 10:08:29 +0200 |
commit | f87eb3c1043d3f4f8e22ba505cd1a827241e160c (patch) | |
tree | e46351c8ec622c9d13232cf00c8a1048e55184af /src/ProfileBrowser.vala | |
parent | 7f667adb7b8d3a803a6cd6120dcea4ba4ff89075 (diff) | |
parent | 2333d2b06d52754a55a747fa438844286f98d53a (diff) |
Merge branch 'feature/upstream' into develop
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; |