From d0aaad443a88968dc61172c050084d3d9faa7602 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Sat, 12 Aug 2023 10:07:35 +0200 Subject: New upstream version 0.32.2 --- src/ProfileBrowser.vala | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/ProfileBrowser.vala') 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; -- cgit v1.2.3