summaryrefslogtreecommitdiff
path: root/src/ProfileBrowser.vala
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2023-08-12 10:07:55 +0200
committerJörg Frings-Fürst <debian@jff.email>2023-08-12 10:07:55 +0200
commit2333d2b06d52754a55a747fa438844286f98d53a (patch)
treee46351c8ec622c9d13232cf00c8a1048e55184af /src/ProfileBrowser.vala
parent7f667adb7b8d3a803a6cd6120dcea4ba4ff89075 (diff)
parentd0aaad443a88968dc61172c050084d3d9faa7602 (diff)
Update upstream source from tag 'upstream/0.32.2'
Update to upstream version '0.32.2' with Debian dir f0c4eb48b3e5ba2a80bbd45ac2effe5ecd515530
Diffstat (limited to 'src/ProfileBrowser.vala')
-rw-r--r--src/ProfileBrowser.vala12
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;