summaryrefslogtreecommitdiff
path: root/src/ProfileBrowser.vala
diff options
context:
space:
mode:
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;