[shotwell] Use proper strings for states
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [shotwell] Use proper strings for states
- Date: Thu, 24 Nov 2016 22:03:07 +0000 (UTC)
commit 1763804167a4afd0b024eaa38cdde011806800c4
Author: Jens Georg <mail jensge org>
Date: Thu Nov 24 23:01:44 2016 +0100
Use proper strings for states
Signed-off-by: Jens Georg <mail jensge org>
src/MediaPage.vala | 6 +++---
src/PhotoPage.vala | 6 +++---
src/SearchFilter.vala | 2 +-
3 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/src/MediaPage.vala b/src/MediaPage.vala
index 4809933..d9280c7 100644
--- a/src/MediaPage.vala
+++ b/src/MediaPage.vala
@@ -334,10 +334,10 @@ public abstract class MediaPage : CheckerboardPage {
get_action ("ViewRatings").change_state (Config.Facade.get_instance ().get_display_photo_ratings ());
get_action ("ViewTags").change_state (Config.Facade.get_instance ().get_display_photo_tags ());
get_action ("SortBy").change_state ("%d".printf (sort_by));
- get_action ("Sort").change_state (sort_order ? "'ascending'" : "'descending'");
+ get_action ("Sort").change_state (sort_order ? "ascending" : "descending");
var d = Config.Facade.get_instance().get_default_raw_developer();
- get_action ("RawDeveloper").change_state (d == RawDeveloper.SHOTWELL ? "'Shotwell'" : "'Camera'");
+ get_action ("RawDeveloper").change_state (d == RawDeveloper.SHOTWELL ? "Shotwell" : "Camera");
}
protected override void update_actions(int selected_count, int count) {
@@ -988,7 +988,7 @@ public abstract class MediaPage : CheckerboardPage {
}
protected void set_menu_sort_order(bool ascending) {
- sort_ascending_action().change_state (ascending ? "'ascending'" : "'descending'");
+ sort_ascending_action().change_state (ascending ? "ascending" : "descending");
}
void set_view_comparator(int sort_by, bool ascending) {
diff --git a/src/PhotoPage.vala b/src/PhotoPage.vala
index a654987..259459e 100644
--- a/src/PhotoPage.vala
+++ b/src/PhotoPage.vala
@@ -2441,7 +2441,7 @@ public class LibraryPhotoPage : EditingHostPage {
(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.change_state (d == RawDeveloper.SHOTWELL ? "'Shotwell'" : "'Camera'");
+ action.change_state (d == RawDeveloper.SHOTWELL ? "Shotwell" : "Camera");
}
protected override InjectionGroup[] init_collect_injection_groups() {
@@ -3094,12 +3094,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:
diff --git a/src/SearchFilter.vala b/src/SearchFilter.vala
index 9059748..5a11936 100644
--- a/src/SearchFilter.vala
+++ b/src/SearchFilter.vala
@@ -440,7 +440,7 @@ public class SearchFilterActions {
photos.set_enabled (false);
raw.set_enabled (false);
videos.set_enabled (false);
- Variant v = "'%d'".printf (RatingFilter.UNRATED_OR_HIGHER);
+ Variant v = "%d".printf (RatingFilter.UNRATED_OR_HIGHER);
rating.change_state (v);
text.set_text(null);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]