summaryrefslogtreecommitdiff
path: root/src/PhotoPage.vala
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2017-01-02 11:24:12 +0100
committerJörg Frings-Fürst <debian@jff-webhosting.net>2017-01-02 11:24:12 +0100
commit66f6a7bd3f7e00022191f16cb0e82a39e7333a76 (patch)
tree8b5b7c598d87518696e151621988eafee18ffa06 /src/PhotoPage.vala
parent4a3f1fdfe1eb3743564adcee35d5513224339260 (diff)
New upstream version 0.25.2upstream/0.25.2
Diffstat (limited to 'src/PhotoPage.vala')
-rw-r--r--src/PhotoPage.vala23
1 files changed, 6 insertions, 17 deletions
diff --git a/src/PhotoPage.vala b/src/PhotoPage.vala
index 3ad2076..a6fb529 100644
--- a/src/PhotoPage.vala
+++ b/src/PhotoPage.vala
@@ -2438,10 +2438,10 @@ public class LibraryPhotoPage : EditingHostPage {
base.add_actions ();
AppWindow.get_instance ().add_action_entries (entries, this);
- (get_action ("ViewRatings") as GLib.SimpleAction).set_state (Config.Facade.get_instance ().get_display_photo_ratings ());
+ (get_action ("ViewRatings") as GLib.SimpleAction).change_state (Config.Facade.get_instance ().get_display_photo_ratings ());
var d = Config.Facade.get_instance().get_default_raw_developer();
var action = get_action ("RawDeveloper") as GLib.SimpleAction;
- action.set_state (d == RawDeveloper.SHOTWELL ? "'Shotwell'" : "'Camera'");
+ action.change_state (d == RawDeveloper.SHOTWELL ? "Shotwell" : "Camera");
}
protected override InjectionGroup[] init_collect_injection_groups() {
@@ -2458,7 +2458,7 @@ public class LibraryPhotoPage : EditingHostPage {
groups += publish_group;
InjectionGroup bg_group = new InjectionGroup("SetBackgroundPlaceholder");
- bg_group.add_menu_item(_("Set as _Desktop Background"), "SetBackground");
+ bg_group.add_menu_item(_("Set as _Desktop Background"), "SetBackground", "<Primary>b");
groups += bg_group;
@@ -2569,18 +2569,7 @@ public class LibraryPhotoPage : EditingHostPage {
}
private void update_flag_action() {
- if (has_photo()) {
- var action = get_action("Flag") as GLib.SimpleAction;
- assert(action != null);
-
-// bool is_flagged = ((LibraryPhoto) get_photo()).is_flagged();
-
- debug ("Setting label of action flagged");
-// action.label = is_flagged ? Resources.UNFLAG_MENU : Resources.FLAG_MENU;
- action.set_enabled (true);
- } else {
- set_action_sensitive("Flag", false);
- }
+ set_action_sensitive ("Flag", has_photo());
}
// Displays a photo from a specific CollectionPage. When the user exits this view,
@@ -3094,12 +3083,12 @@ public class LibraryPhotoPage : EditingHostPage {
// Set active developer in menu.
switch (get_photo().get_raw_developer()) {
case RawDeveloper.SHOTWELL:
- get_action ("RawDeveloper").change_state ("'Shotwell'");
+ get_action ("RawDeveloper").change_state ("Shotwell");
break;
case RawDeveloper.CAMERA:
case RawDeveloper.EMBEDDED:
- get_action ("RawDeveloper").change_state ("'Camera'");
+ get_action ("RawDeveloper").change_state ("Camera");
break;
default: