1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
|
/* Copyright 2016 Software Freedom Conservancy Inc.
*
* This software is licensed under the GNU LGPL (version 2.1 or later).
* See the COPYING file in this distribution.
*/
// defined by ./configure or Makefile and included by gcc -D
extern const string _PREFIX;
extern const string _VERSION;
extern const string GETTEXT_PACKAGE;
extern const string _LIB;
extern const string _LIBEXECDIR;
extern const string? _GIT_VERSION;
namespace Resources {
public const string APP_TITLE = "Shotwell";
public const string APP_LIBRARY_ROLE = _("Photo Manager");
public const string APP_DIRECT_ROLE = _("Photo Viewer");
public const string APP_VERSION = _VERSION;
#if _GITVERSION
public const string? GIT_VERSION = _GIT_VERSION;
#else
public const string? GIT_VERSION = null;
#endif
public const string COPYRIGHT = _("Copyright 2016 Software Freedom Conservancy Inc.");
public const string APP_GETTEXT_PACKAGE = GETTEXT_PACKAGE;
public const string HOME_URL = "https://wiki.gnome.org/Apps/Shotwell";
public const string FAQ_URL = "https://wiki.gnome.org/Apps/Shotwell/FAQ";
public const string BUG_DB_URL = "https://wiki.gnome.org/Apps/Shotwell/ReportingABug";
public const string DIR_PATTERN_URI_SYSWIDE = "help:shotwell/other-files";
private const string LIB = _LIB;
private const string LIBEXECDIR = _LIBEXECDIR;
public const string PREFIX = _PREFIX;
public const double TRANSIENT_WINDOW_OPACITY = 0.90;
public const int DEFAULT_ICON_SCALE = 24;
public const string[] AUTHORS = {
"Jim Nelson <jim@yorba.org>",
"Lucas Beeler <lucas@yorba.org>",
"Allison Barlow <allison@yorba.org>",
"Eric Gregory <eric@yorba.org>",
"Clinton Rogers <clinton@yorba.org>",
null
};
public const string LICENSE = """
Shotwell is free software; you can redistribute it and/or modify it under the
terms of the GNU Lesser General Public License as published by the Free
Software Foundation; either version 2.1 of the License, or (at your option)
any later version.
Shotwell is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for
more details.
You should have received a copy of the GNU Lesser General Public License
along with Shotwell; if not, write to the Free Software Foundation, Inc.,
51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
""";
public const string CLOCKWISE = "object-rotate-right";
public const string COUNTERCLOCKWISE = "object-rotate-left";
public const string HFLIP = "object-flip-horizontal";
public const string VFLIP = "object-flip-vertical";
public const string CROP = "shotwell-crop";
public const string STRAIGHTEN = "shotwell-straighten";
public const string REDEYE = "shotwell-redeye";
public const string ADJUST = "image-adjust";
public const string PIN_TOOLBAR = "shotwell-pin-toolbar";
public const string MAKE_PRIMARY = "shotwell-make-primary";
public const string IMPORT = "import";
public const string IMPORT_ALL = "import-all";
public const string ENHANCE = "shotwell-auto-enhance";
public const string CROP_PIVOT_RETICLE = "shotwell-crop-pivot-reticle";
public const string PUBLISH = "applications-internet";
public const string MERGE = "shotwell-merge-events";
public const string GO_NEXT = "go-next";
public const string GO_PREVIOUS = "go-previous";
//public const string ICON_ABOUT_LOGO = "shotwell-street.jpg";
public const string ICON_ABOUT_LOGO = "about-braunschweig.jpg";
public const string ICON_GENERIC_PLUGIN = "generic-plugin.png";
public const string ICON_SLIDESHOW_EXTENSION_POINT = "slideshow-extension-point";
public const string ICON_RATING_REJECTED = "rejected.svg";
public const string ICON_RATING_ONE = "one-star.svg";
public const string ICON_RATING_TWO = "two-stars.svg";
public const string ICON_RATING_THREE = "three-stars.svg";
public const string ICON_RATING_FOUR = "four-stars.svg";
public const string ICON_RATING_FIVE = "five-stars.svg";
public const string ICON_FILTER_REJECTED_OR_BETTER = "all-rejected.png";
public const int ICON_FILTER_REJECTED_OR_BETTER_FIXED_SIZE = 32;
public const string ICON_FILTER_UNRATED_OR_BETTER = "shotwell-16.png";
public const int ICON_FILTER_UNRATED_OR_BETTER_FIXED_SIZE = 16;
public const string ICON_FILTER_ONE_OR_BETTER = "one-star-filter-plus.svg";
public const string ICON_FILTER_TWO_OR_BETTER = "two-star-filter-plus.svg";
public const string ICON_FILTER_THREE_OR_BETTER = "three-star-filter-plus.svg";
public const string ICON_FILTER_FOUR_OR_BETTER = "four-star-filter-plus.svg";
public const string ICON_FILTER_FIVE = "five-star-filter.svg";
public const string ICON_ZOOM_IN = "zoom-in.png";
public const string ICON_ZOOM_OUT = "zoom-out.png";
public const int ICON_ZOOM_SCALE = 16;
public const string ICON_CAMERAS = "camera-photo";
public const string ICON_EVENTS = "multiple-events";
public const string ICON_ONE_EVENT = "one-event";
public const string ICON_NO_EVENT = "no-event";
public const string ICON_ONE_TAG = "one-tag";
public const string ICON_TAGS = "multiple-tags";
public const string ICON_FOLDER = "folder";
public const string ICON_FOLDER_DOCUMENTS = "folder-documents";
public const string ICON_IMPORTING = "go-down";
public const string ICON_LAST_IMPORT = "document-open-recent";
public const string ICON_MISSING_FILES = "process-stop";
public const string ICON_PHOTOS = "shotwell";
public const string ICON_SINGLE_PHOTO = "image-x-generic";
public const string ICON_FILTER_PHOTOS = "filter-photos";
public const string ICON_FILTER_PHOTOS_DISABLED = "filter-photos-disabled";
public const string ICON_FILTER_VIDEOS = "filter-videos";
public const string ICON_FILTER_VIDEOS_DISABLED = "filter-videos-disabled";
public const string ICON_FILTER_RAW = "filter-raw";
public const string ICON_FILTER_RAW_DISABLED = "filter-raw-disabled";
public const string ICON_FILTER_FLAGGED = "filter-flagged";
public const string ICON_FILTER_FLAGGED_DISABLED = "filter-flagged-disabled";
public const string ICON_TRASH_EMPTY = "user-trash";
public const string ICON_TRASH_FULL = "user-trash-full";
public const string ICON_VIDEOS_PAGE = "videos-page";
public const string ICON_FLAGGED_PAGE = "flag-page";
public const string ICON_FLAGGED_TRINKET = "flag-trinket.png";
public const string ROTATE_CW_MENU = _("Rotate _Right");
public const string ROTATE_CW_LABEL = _("Rotate");
public const string ROTATE_CW_FULL_LABEL = _("Rotate Right");
public const string ROTATE_CW_TOOLTIP = _("Rotate the photos right (press Ctrl to rotate left)");
public const string ROTATE_CCW_MENU = _("Rotate _Left");
public const string ROTATE_CCW_LABEL = _("Rotate");
public const string ROTATE_CCW_FULL_LABEL = _("Rotate Left");
public const string ROTATE_CCW_TOOLTIP = _("Rotate the photos left");
public const string HFLIP_MENU = _("Flip Hori_zontally");
public const string HFLIP_LABEL = _("Flip Horizontally");
public const string VFLIP_MENU = _("Flip Verti_cally");
public const string VFLIP_LABEL = _("Flip Vertically");
public const string ABOUT_LABEL = _("_About");
public const string APPLY_LABEL = _("_Apply");
public const string CANCEL_LABEL = _("_Cancel");
public const string DELETE_LABEL = _("_Delete");
public const string EDIT_LABEL = _("_Edit");
public const string FORWARD_LABEL = _("_Forward");
public const string FULLSCREEN_LABEL = _("Fulls_creen");
public const string HELP_LABEL = _("_Help");
public const string LEAVE_FULLSCREEN_LABEL = _("Leave _Fullscreen");
public const string NEW_LABEL = _("_New");
public const string NEXT_LABEL = _("_Next");
public const string OK_LABEL = _("_OK");
public const string PLAY_LABEL = _("_Play");
public const string PREFERENCES_LABEL = _("_Preferences");
public const string PREVIOUS_LABEL = _("_Previous");
public const string PRINT_LABEL = _("_Print");
public const string QUIT_LABEL = _("_Quit");
public const string REFRESH_LABEL = _("_Refresh");
public const string REMOVE_LABEL = _("_Remove");
public const string REVERT_TO_SAVED_LABEL = _("_Revert");
public const string SAVE_LABEL = _("_Save");
public const string SAVE_AS_LABEL = _("Save _As");
public const string SORT_ASCENDING_LABEL = _("Sort _Ascending");
public const string SORT_DESCENDING_LABEL = _("Sort _Descending");
public const string STOP_LABEL = _("_Stop");
public const string UNDELETE_LABEL = _("_Undelete");
public const string ZOOM_100_LABEL = _("_Normal Size");
public const string ZOOM_FIT_LABEL = _("Best _Fit");
public const string ZOOM_IN_LABEL = _("Zoom _In");
public const string ZOOM_OUT_LABEL = _("Zoom _Out");
public const string ENHANCE_MENU = _("_Enhance");
public const string ENHANCE_LABEL = _("Enhance");
public const string ENHANCE_TOOLTIP = _("Automatically improve the photo’s appearance");
public const string COPY_ADJUSTMENTS_MENU = _("_Copy Color Adjustments");
public const string COPY_ADJUSTMENTS_LABEL = _("Copy Color Adjustments");
public const string COPY_ADJUSTMENTS_TOOLTIP = _("Copy the color adjustments applied to the photo");
public const string PASTE_ADJUSTMENTS_MENU = _("_Paste Color Adjustments");
public const string PASTE_ADJUSTMENTS_LABEL = _("Paste Color Adjustments");
public const string PASTE_ADJUSTMENTS_TOOLTIP = _("Apply copied color adjustments to the selected photos");
public const string CROP_MENU = _("_Crop");
public const string CROP_LABEL = _("Crop");
public const string CROP_TOOLTIP = _("Crop the photo’s size");
public const string STRAIGHTEN_MENU = _("_Straighten");
public const string STRAIGHTEN_LABEL = _("Straighten");
public const string STRAIGHTEN_TOOLTIP = _("Straighten the photo");
public const string RED_EYE_MENU = _("_Red-eye");
public const string RED_EYE_LABEL = _("Red-eye");
public const string RED_EYE_TOOLTIP = _("Reduce or eliminate any red-eye effects in the photo");
public const string ADJUST_MENU = _("_Adjust");
public const string ADJUST_LABEL = _("Adjust");
public const string ADJUST_TOOLTIP = _("Adjust the photo’s color and tone");
public const string REVERT_MENU = _("Re_vert to Original");
public const string REVERT_LABEL = _("Revert to Original");
public const string REVERT_EDITABLE_MENU = _("Revert External E_dits");
public const string REVERT_EDITABLE_TOOLTIP = _("Revert to the master photo");
public const string SET_BACKGROUND_MENU = _("Set as _Desktop Background");
public const string SET_BACKGROUND_TOOLTIP = _("Set selected image to be the new desktop background");
public const string SET_BACKGROUND_SLIDESHOW_MENU = _("Set as _Desktop Slideshow…");
public const string UNDO_MENU = _("_Undo");
public const string UNDO_LABEL = _("Undo");
public const string REDO_MENU = _("_Redo");
public const string REDO_LABEL = _("Redo");
public const string RENAME_EVENT_MENU = _("Re_name Event…");
public const string RENAME_EVENT_LABEL = _("Rename Event");
public const string MAKE_KEY_PHOTO_MENU = _("Make _Key Photo for Event");
public const string MAKE_KEY_PHOTO_LABEL = _("Make Key Photo for Event");
public const string NEW_EVENT_MENU = _("_New Event");
public const string NEW_EVENT_LABEL = _("New Event");
public const string SET_PHOTO_EVENT_LABEL = _("Move Photos");
public const string SET_PHOTO_EVENT_TOOLTIP = _("Move photos to an event");
public const string MERGE_MENU = _("_Merge Events");
public const string MERGE_LABEL = _("Merge");
public const string MERGE_TOOLTIP = _("Combine events into a single event");
public const string RATING_MENU = _("_Set Rating");
public const string RATING_LABEL = _("Set Rating");
public const string RATING_TOOLTIP = _("Change the rating of your photo");
public const string INCREASE_RATING_MENU = _("_Increase");
public const string INCREASE_RATING_LABEL = _("Increase Rating");
public const string DECREASE_RATING_MENU = _("_Decrease");
public const string DECREASE_RATING_LABEL = _("Decrease Rating");
public const string RATE_UNRATED_MENU = _("_Unrated");
public const string RATE_UNRATED_COMBO_BOX = _("Unrated");
public const string RATE_UNRATED_LABEL = _("Rate Unrated");
public const string RATE_UNRATED_PROGRESS = _("Setting as unrated");
public const string RATE_UNRATED_TOOLTIP = _("Remove any ratings");
public const string RATE_REJECTED_MENU = _("_Rejected");
public const string RATE_REJECTED_COMBO_BOX = _("Rejected");
public const string RATE_REJECTED_LABEL = _("Rate Rejected");
public const string RATE_REJECTED_PROGRESS = _("Setting as rejected");
public const string RATE_REJECTED_TOOLTIP = _("Set rating to rejected");
public const string DISPLAY_REJECTED_ONLY_MENU = _("Rejected _Only");
public const string DISPLAY_REJECTED_ONLY_LABEL = _("Rejected Only");
public const string DISPLAY_REJECTED_ONLY_TOOLTIP = _("Show only rejected photos");
public const string DISPLAY_REJECTED_OR_HIGHER_MENU = _("All + _Rejected");
public const string DISPLAY_REJECTED_OR_HIGHER_TOOLTIP = NC_("Tooltip", "Show all photos, including rejected");
public const string DISPLAY_UNRATED_OR_HIGHER_MENU = _("_All Photos");
// Button tooltip
public const string DISPLAY_UNRATED_OR_HIGHER_TOOLTIP = _("Show all photos");
public const string VIEW_RATINGS_MENU = _("_Ratings");
public const string VIEW_RATINGS_TOOLTIP = _("Display each photo’s rating");
public const string FILTER_PHOTOS_MENU = _("_Filter Photos");
public const string FILTER_PHOTOS_LABEL = _("Filter Photos");
public const string FILTER_PHOTOS_TOOLTIP = _("Limit the number of photos displayed based on a filter");
public const string DUPLICATE_PHOTO_MENU = _("_Duplicate");
public const string DUPLICATE_PHOTO_LABEL = _("Duplicate");
public const string DUPLICATE_PHOTO_TOOLTIP = _("Make a duplicate of the photo");
public const string EXPORT_MENU = _("_Export…");
public const string PRINT_MENU = _("_Print…");
public const string PUBLISH_MENU = _("Pu_blish…");
public const string PUBLISH_LABEL = _("Publish");
public const string PUBLISH_TOOLTIP = _("Publish to various websites");
public const string EDIT_TITLE_MENU = _("Edit _Title…");
// Button label
public const string EDIT_TITLE_LABEL = NC_("Button Label", "Edit Title");
public const string EDIT_COMMENT_MENU = _("Edit _Comment…");
// Button label
public const string EDIT_COMMENT_LABEL = _("Edit Comment");
public const string EDIT_EVENT_COMMENT_MENU = _("Edit Event _Comment…");
public const string EDIT_EVENT_COMMENT_LABEL = _("Edit Event Comment");
public const string ADJUST_DATE_TIME_MENU = _("_Adjust Date and Time…");
public const string ADJUST_DATE_TIME_LABEL = _("Adjust Date and Time");
public const string ADD_TAGS_MENU = _("Add _Tags…");
public const string ADD_TAGS_CONTEXT_MENU = _("_Add Tags…");
// Dialog title
public const string ADD_TAGS_TITLE = NC_("Dialog Title", "Add Tags");
public const string PREFERENCES_MENU = _("_Preferences");
public const string EXTERNAL_EDIT_MENU = _("Open With E_xternal Editor");
public const string EXTERNAL_EDIT_RAW_MENU = _("Open With RA_W Editor");
public const string SEND_TO_MENU = _("Send _To…");
public const string SEND_TO_CONTEXT_MENU = _("Send T_o…");
public const string FIND_MENU = _("_Find…");
public const string FIND_LABEL = _("Find");
public const string FIND_TOOLTIP = _("Find an image by typing text that appears in its name or tags");
public const string FLAG_MENU = _("_Flag");
public const string UNFLAG_MENU = _("Un_flag");
public string launch_editor_failed(Error err) {
return _("Unable to launch editor: %s").printf(err.message);
}
public string add_tags_label(string[] names) {
if (names.length == 1) {
return _("Add Tag “%s”").printf(HierarchicalTagUtilities.get_basename(names[0]));
} else if (names.length == 2) {
// Used when adding two tags to photo(s)
return _("Add Tags “%s” and “%s”").printf(
HierarchicalTagUtilities.get_basename(names[0]),
HierarchicalTagUtilities.get_basename(names[1]));
} else {
// Undo/Redo command name (in Edit menu)
return C_("UndoRedo menu entry", "Add Tags");
}
}
public string delete_tag_menu(string name) {
return _("_Delete Tag “%s”").printf(name);
}
public string delete_tag_label(string name) {
return _("Delete Tag “%s”").printf(name);
}
public const string DELETE_TAG_TITLE = _("Delete Tag");
public const string DELETE_TAG_SIDEBAR_MENU = _("_Delete");
public const string NEW_CHILD_TAG_SIDEBAR_MENU = _("_New");
public string rename_tag_menu(string name) {
return _("Re_name Tag “%s”…").printf(name);
}
public string rename_tag_label(string old_name, string new_name) {
return _("Rename Tag “%s” to “%s”").printf(old_name, new_name);
}
public const string RENAME_TAG_SIDEBAR_MENU = _("_Rename…");
public const string MODIFY_TAGS_MENU = _("Modif_y Tags…");
public const string MODIFY_TAGS_LABEL = _("Modify Tags");
public string tag_photos_label(string name, int count) {
return ngettext ("Tag Photo as “%s”",
"Tag Photos as “%s”",
count).printf(name);
}
public string tag_photos_tooltip(string name, int count) {
return ngettext ("Tag the selected photo as “%s”",
"Tag the selected photos as “%s”",
count).printf(name);
}
public string untag_photos_menu(string name, int count) {
return ngettext ("Remove Tag “%s” From _Photo",
"Remove Tag “%s” From _Photos",
count).printf(name);
}
public string untag_photos_label(string name, int count) {
return ngettext ("Remove Tag “%s” From Photo",
"Remove Tag “%s” From Photos",
count).printf(name);
}
public static string rename_tag_exists_message(string name) {
return _("Unable to rename tag to “%s” because the tag already exists.").printf(name);
}
public static string rename_search_exists_message(string name) {
return _("Unable to rename search to “%s” because the search already exists.").printf(name);
}
public const string DEFAULT_SAVED_SEARCH_NAME = _("Saved Search");
public const string DELETE_SAVED_SEARCH_DIALOG_TITLE = _("Delete Search");
public const string DELETE_SEARCH_MENU = _("_Delete");
public const string EDIT_SEARCH_MENU = _("_Edit…");
public const string RENAME_SEARCH_MENU = _("Re_name…");
public string rename_search_label(string old_name, string new_name) {
return _("Rename Search “%s” to “%s”").printf(old_name, new_name);
}
public string delete_search_label(string name) {
return _("Delete Search “%s”").printf(name);
}
private unowned string rating_label(Rating rating) {
switch (rating) {
case Rating.REJECTED:
return RATE_REJECTED_LABEL;
case Rating.UNRATED:
return RATE_UNRATED_LABEL;
case Rating.ONE:
return RATE_ONE_LABEL;
case Rating.TWO:
return RATE_TWO_LABEL;
case Rating.THREE:
return RATE_THREE_LABEL;
case Rating.FOUR:
return RATE_FOUR_LABEL;
case Rating.FIVE:
return RATE_FIVE_LABEL;
default:
return RATE_UNRATED_LABEL;
}
}
private unowned string rating_combo_box(Rating rating) {
switch (rating) {
case Rating.REJECTED:
return RATE_REJECTED_COMBO_BOX;
case Rating.UNRATED:
return RATE_UNRATED_COMBO_BOX;
case Rating.ONE:
return RATE_ONE_MENU;
case Rating.TWO:
return RATE_TWO_MENU;
case Rating.THREE:
return RATE_THREE_MENU;
case Rating.FOUR:
return RATE_FOUR_MENU;
case Rating.FIVE:
return RATE_FIVE_MENU;
default:
return RATE_UNRATED_MENU;
}
}
private string get_rating_filter_tooltip(RatingFilter filter) {
switch (filter) {
case RatingFilter.REJECTED_OR_HIGHER:
return Resources.DISPLAY_REJECTED_OR_HIGHER_TOOLTIP;
case RatingFilter.ONE_OR_HIGHER:
return Resources.DISPLAY_ONE_OR_HIGHER_TOOLTIP;
case RatingFilter.TWO_OR_HIGHER:
return Resources.DISPLAY_TWO_OR_HIGHER_TOOLTIP;
case RatingFilter.THREE_OR_HIGHER:
return Resources.DISPLAY_THREE_OR_HIGHER_TOOLTIP;
case RatingFilter.FOUR_OR_HIGHER:
return Resources.DISPLAY_FOUR_OR_HIGHER_TOOLTIP;
case RatingFilter.FIVE_ONLY:
case RatingFilter.FIVE_OR_HIGHER:
return Resources.DISPLAY_FIVE_OR_HIGHER_TOOLTIP;
case RatingFilter.REJECTED_ONLY:
return Resources.DISPLAY_REJECTED_ONLY_TOOLTIP;
case RatingFilter.UNRATED_OR_HIGHER:
default:
return Resources.DISPLAY_UNRATED_OR_HIGHER_TOOLTIP;
}
}
private string rating_progress(Rating rating) {
switch (rating) {
case Rating.REJECTED:
return RATE_REJECTED_PROGRESS;
case Rating.UNRATED:
return RATE_UNRATED_PROGRESS;
case Rating.ONE:
return RATE_ONE_PROGRESS;
case Rating.TWO:
return RATE_TWO_PROGRESS;
case Rating.THREE:
return RATE_THREE_PROGRESS;
case Rating.FOUR:
return RATE_FOUR_PROGRESS;
case Rating.FIVE:
return RATE_FIVE_PROGRESS;
default:
return RATE_UNRATED_PROGRESS;
}
}
private const int[] rating_thresholds = { 0, 1, 25, 50, 75, 99 };
private string get_stars(Rating rating) {
switch (rating) {
case Rating.ONE:
return "\xE2\x98\x85";
case Rating.TWO:
return "\xE2\x98\x85\xE2\x98\x85";
case Rating.THREE:
return "\xE2\x98\x85\xE2\x98\x85\xE2\x98\x85";
case Rating.FOUR:
return "\xE2\x98\x85\xE2\x98\x85\xE2\x98\x85\xE2\x98\x85";
case Rating.FIVE:
return "\xE2\x98\x85\xE2\x98\x85\xE2\x98\x85\xE2\x98\x85\xE2\x98\x85";
default:
return "";
}
}
private Gdk.Pixbuf? get_rating_trinket(Rating rating, int scale) {
switch (rating) {
case Rating.REJECTED:
return Resources.get_icon(Resources.ICON_RATING_REJECTED, scale);
// case Rating.UNRATED needs no icon
case Rating.ONE:
return Resources.get_icon(Resources.ICON_RATING_ONE, scale);
case Rating.TWO:
return Resources.get_icon(Resources.ICON_RATING_TWO, scale*2);
case Rating.THREE:
return Resources.get_icon(Resources.ICON_RATING_THREE, scale*3);
case Rating.FOUR:
return Resources.get_icon(Resources.ICON_RATING_FOUR, scale*4);
case Rating.FIVE:
return Resources.get_icon(Resources.ICON_RATING_FIVE, scale*5);
default:
return null;
}
}
private void generate_rating_strings() {
string menu_base = "%s";
string label_base = _("Rate %s");
string tooltip_base = _("Set rating to %s");
string progress_base = _("Setting rating to %s");
string display_rating_menu_base = "%s";
string display_rating_label_base = _("Display %s");
string display_rating_tooltip_base = _("Only show photos with a rating of %s");
string display_rating_or_higher_menu_base = _("%s or Better");
string display_rating_or_higher_label_base = _("Display %s or Better");
string display_rating_or_higher_tooltip_base = _("Only show photos with a rating of %s or better");
RATE_ONE_MENU = menu_base.printf(get_stars(Rating.ONE));
RATE_TWO_MENU = menu_base.printf(get_stars(Rating.TWO));
RATE_THREE_MENU = menu_base.printf(get_stars(Rating.THREE));
RATE_FOUR_MENU = menu_base.printf(get_stars(Rating.FOUR));
RATE_FIVE_MENU = menu_base.printf(get_stars(Rating.FIVE));
RATE_ONE_LABEL = label_base.printf(get_stars(Rating.ONE));
RATE_TWO_LABEL = label_base.printf(get_stars(Rating.TWO));
RATE_THREE_LABEL = label_base.printf(get_stars(Rating.THREE));
RATE_FOUR_LABEL = label_base.printf(get_stars(Rating.FOUR));
RATE_FIVE_LABEL = label_base.printf(get_stars(Rating.FIVE));
RATE_ONE_TOOLTIP = tooltip_base.printf(get_stars(Rating.ONE));
RATE_TWO_TOOLTIP = tooltip_base.printf(get_stars(Rating.TWO));
RATE_THREE_TOOLTIP = tooltip_base.printf(get_stars(Rating.THREE));
RATE_FOUR_TOOLTIP = tooltip_base.printf(get_stars(Rating.FOUR));
RATE_FIVE_TOOLTIP = tooltip_base.printf(get_stars(Rating.FIVE));
RATE_ONE_PROGRESS = progress_base.printf(get_stars(Rating.ONE));
RATE_TWO_PROGRESS = progress_base.printf(get_stars(Rating.TWO));
RATE_THREE_PROGRESS = progress_base.printf(get_stars(Rating.THREE));
RATE_FOUR_PROGRESS = progress_base.printf(get_stars(Rating.FOUR));
RATE_FIVE_PROGRESS = progress_base.printf(get_stars(Rating.FIVE));
DISPLAY_ONE_OR_HIGHER_MENU = display_rating_or_higher_menu_base.printf(get_stars(Rating.ONE));
DISPLAY_TWO_OR_HIGHER_MENU = display_rating_or_higher_menu_base.printf(get_stars(Rating.TWO));
DISPLAY_THREE_OR_HIGHER_MENU = display_rating_or_higher_menu_base.printf(get_stars(Rating.THREE));
DISPLAY_FOUR_OR_HIGHER_MENU = display_rating_or_higher_menu_base.printf(get_stars(Rating.FOUR));
DISPLAY_FIVE_OR_HIGHER_MENU = display_rating_menu_base.printf(get_stars(Rating.FIVE));
DISPLAY_ONE_OR_HIGHER_LABEL = display_rating_or_higher_label_base.printf(get_stars(Rating.ONE));
DISPLAY_TWO_OR_HIGHER_LABEL = display_rating_or_higher_label_base.printf(get_stars(Rating.TWO));
DISPLAY_THREE_OR_HIGHER_LABEL = display_rating_or_higher_label_base.printf(get_stars(Rating.THREE));
DISPLAY_FOUR_OR_HIGHER_LABEL = display_rating_or_higher_label_base.printf(get_stars(Rating.FOUR));
DISPLAY_FIVE_OR_HIGHER_LABEL = display_rating_label_base.printf(get_stars(Rating.FIVE));
DISPLAY_ONE_OR_HIGHER_TOOLTIP = display_rating_or_higher_tooltip_base.printf(get_stars(Rating.ONE));
DISPLAY_TWO_OR_HIGHER_TOOLTIP = display_rating_or_higher_tooltip_base.printf(get_stars(Rating.TWO));
DISPLAY_THREE_OR_HIGHER_TOOLTIP = display_rating_or_higher_tooltip_base.printf(get_stars(Rating.THREE));
DISPLAY_FOUR_OR_HIGHER_TOOLTIP = display_rating_or_higher_tooltip_base.printf(get_stars(Rating.FOUR));
DISPLAY_FIVE_OR_HIGHER_TOOLTIP = display_rating_tooltip_base.printf(get_stars(Rating.FIVE));
}
private string RATE_ONE_MENU;
private string RATE_ONE_LABEL;
private string RATE_ONE_TOOLTIP;
private string RATE_ONE_PROGRESS;
private string RATE_TWO_MENU;
private string RATE_TWO_LABEL;
private string RATE_TWO_TOOLTIP;
private string RATE_TWO_PROGRESS;
private string RATE_THREE_MENU;
private string RATE_THREE_LABEL;
private string RATE_THREE_TOOLTIP;
private string RATE_THREE_PROGRESS;
private string RATE_FOUR_MENU;
private string RATE_FOUR_LABEL;
private string RATE_FOUR_TOOLTIP;
private string RATE_FOUR_PROGRESS;
private string RATE_FIVE_MENU;
private string RATE_FIVE_LABEL;
private string RATE_FIVE_TOOLTIP;
private string RATE_FIVE_PROGRESS;
private string DISPLAY_ONE_OR_HIGHER_MENU;
private string DISPLAY_ONE_OR_HIGHER_LABEL;
private string DISPLAY_ONE_OR_HIGHER_TOOLTIP;
private string DISPLAY_TWO_OR_HIGHER_MENU;
private string DISPLAY_TWO_OR_HIGHER_LABEL;
private string DISPLAY_TWO_OR_HIGHER_TOOLTIP;
private string DISPLAY_THREE_OR_HIGHER_MENU;
private string DISPLAY_THREE_OR_HIGHER_LABEL;
private string DISPLAY_THREE_OR_HIGHER_TOOLTIP;
private string DISPLAY_FOUR_OR_HIGHER_MENU;
private string DISPLAY_FOUR_OR_HIGHER_LABEL;
private string DISPLAY_FOUR_OR_HIGHER_TOOLTIP;
private string DISPLAY_FIVE_OR_HIGHER_MENU;
private string DISPLAY_FIVE_OR_HIGHER_LABEL;
private string DISPLAY_FIVE_OR_HIGHER_TOOLTIP;
public const string DELETE_PHOTOS_MENU = _("_Delete");
public const string DELETE_FROM_TRASH_TOOLTIP = _("Remove the selected photos from the trash");
public const string DELETE_FROM_LIBRARY_TOOLTIP = _("Remove the selected photos from the library");
public const string RESTORE_PHOTOS_MENU = _("_Restore");
public const string RESTORE_PHOTOS_TOOLTIP = _("Move the selected photos back into the library");
public const string JUMP_TO_FILE_MENU = _("Show in File Mana_ger");
public const string JUMP_TO_FILE_TOOLTIP = _("Open the selected photo’s directory in the file manager");
public string jump_to_file_failed(Error err) {
return _("Unable to open in file manager: %s").printf(err.message);
}
public const string REMOVE_FROM_LIBRARY_MENU = _("R_emove From Library");
public const string MOVE_TO_TRASH_MENU = _("_Move to Trash");
public const string SELECT_ALL_MENU = _("Select _All");
public const string SELECT_ALL_TOOLTIP = _("Select all items");
private Gee.HashMap<string, Gdk.Pixbuf> icon_cache = null;
Gee.HashMap<string, Gdk.Pixbuf> scaled_icon_cache = null;
private string HH_MM_FORMAT_STRING = null;
private string HH_MM_SS_FORMAT_STRING = null;
private string LONG_DATE_FORMAT_STRING = null;
private string START_MULTIDAY_DATE_FORMAT_STRING = null;
private string END_MULTIDAY_DATE_FORMAT_STRING = null;
private string START_MULTIMONTH_DATE_FORMAT_STRING = null;
private string END_MULTIMONTH_DATE_FORMAT_STRING = null;
public void init () {
get_icon_theme_engine();
// load application-wide stock icons as IconSets
generate_rating_strings();
}
public void terminate() {
}
/**
* @brief Helper for getting a format string that matches the
* user's LC_TIME settings from the system. This is intended
* to help support the use case where a user wants the text
* from one locale, but the timestamp format of another.
*
* Stolen wholesale from code written for Geary by Jim Nelson
* and from Marcel Stimberg's original patch to Shotwell to
* try to fix this; both are graciously thanked for their help.
*/
private void fetch_lc_time_format() {
// temporarily unset LANGUAGE, as it interferes with LC_TIME
// and friends.
string? old_language = Environment.get_variable("LANGUAGE");
if (old_language != null) {
Environment.unset_variable("LANGUAGE");
}
// switch LC_MESSAGES to LC_TIME...
string? old_messages = Intl.setlocale(LocaleCategory.MESSAGES, null);
string? lc_time = Intl.setlocale(LocaleCategory.TIME, null);
if (lc_time != null) {
Intl.setlocale(LocaleCategory.MESSAGES, lc_time);
}
// ...precache the timestamp string...
/// Locale-specific time format for 12-hour time, i.e. 8:31 PM
/// Precede modifier with a dash ("-") to pad with spaces, otherwise will pad with zeroes
/// See http://developer.gnome.org/glib/2.32/glib-GDateTime.html#g-date-time-format
HH_MM_FORMAT_STRING = "%X";
/// Locale-specific time format for 12-hour time with seconds, i.e. 8:31:42 PM
/// Precede modifier with a dash ("-") to pad with spaces, otherwise will pad with zeroes
/// See http://developer.gnome.org/glib/2.32/glib-GDateTime.html#g-date-time-format
HH_MM_SS_FORMAT_STRING = Posix.nl_langinfo (Posix.NLItem.T_FMT);
/// Locale-specific calendar date format, i.e. "Tue Mar 08, 2006"
/// See http://developer.gnome.org/glib/2.32/glib-GDateTime.html#g-date-time-format
LONG_DATE_FORMAT_STRING = _("%a %b %d, %Y");
/// Locale-specific starting date format for multi-date strings,
/// i.e. the "Tue Mar 08" in "Tue Mar 08 - 10, 2006"
/// See http://developer.gnome.org/glib/2.32/glib-GDateTime.html#g-date-time-format
START_MULTIDAY_DATE_FORMAT_STRING = C_("MultidayFormat", "%a %b %d");
/// Locale-specific ending date format for multi-date strings,
/// i.e. the "10, 2006" in "Tue Mar 08 - 10, 2006"
/// See http://developer.gnome.org/glib/2.32/glib-GDateTime.html#g-date-time-format
END_MULTIDAY_DATE_FORMAT_STRING = C_("MultidayFormat", "%d, %Y");
/// Locale-specific calendar date format for multi-month strings,
/// i.e. the "Tue Mar 08" in "Tue Mar 08 to Mon Apr 06, 2006"
/// See http://developer.gnome.org/glib/2.32/glib-GDateTime.html#g-date-time-format
START_MULTIMONTH_DATE_FORMAT_STRING = C_("MultimonthFormat", "%a %b %d");
/// Locale-specific calendar date format for multi-month strings,
/// i.e. the "Mon Apr 06, 2006" in "Tue Mar 08 to Mon Apr 06, 2006"
/// See http://developer.gnome.org/glib/2.32/glib-GDateTime.html#g-date-time-format
END_MULTIMONTH_DATE_FORMAT_STRING = C_("MultimonthFormat", "%a %b %d, %Y");
// ...put everything back like we found it.
if (old_messages != null) {
Intl.setlocale(LocaleCategory.MESSAGES, old_messages);
}
if (old_language != null) {
Environment.set_variable("LANGUAGE", old_language, true);
}
}
public enum UnitSystem {
IMPERIAL,
METRIC,
UNKNOWN
}
private string lc_measurement = null;
private UnitSystem unit_system = UnitSystem.UNKNOWN;
private const string IMPERIAL_COUNTRIES[] = {"unm_US", "es_US", "en_US", "yi_US" };
public UnitSystem get_default_measurement_unit() {
if (unit_system != UnitSystem.UNKNOWN) {
return unit_system;
}
lc_measurement = Environment.get_variable("LC_MEASUREMENT");
if (lc_measurement == null) {
lc_measurement = Intl.get_language_names()[0];
}
var index = lc_measurement.last_index_of_char('.');
if (index > 0) {
lc_measurement = lc_measurement.substring(0, index);
}
unit_system = UnitSystem.METRIC;
if (lc_measurement in IMPERIAL_COUNTRIES) {
unit_system = UnitSystem.IMPERIAL;
}
return unit_system;
}
/**
* @brief Returns a precached format string that matches the
* user's LC_TIME settings.
*/
public string get_hh_mm_format_string() {
if (HH_MM_FORMAT_STRING == null) {
fetch_lc_time_format();
}
return HH_MM_FORMAT_STRING;
}
public string get_hh_mm_ss_format_string() {
if (HH_MM_SS_FORMAT_STRING == null) {
fetch_lc_time_format();
}
return HH_MM_SS_FORMAT_STRING;
}
public string get_long_date_format_string() {
if (LONG_DATE_FORMAT_STRING == null) {
fetch_lc_time_format();
}
return LONG_DATE_FORMAT_STRING;
}
public string get_start_multiday_span_format_string() {
if (START_MULTIDAY_DATE_FORMAT_STRING == null) {
fetch_lc_time_format();
}
return START_MULTIDAY_DATE_FORMAT_STRING;
}
public string get_end_multiday_span_format_string() {
if (END_MULTIDAY_DATE_FORMAT_STRING == null) {
fetch_lc_time_format();
}
return END_MULTIDAY_DATE_FORMAT_STRING;
}
public string get_start_multimonth_span_format_string() {
if (START_MULTIMONTH_DATE_FORMAT_STRING == null) {
fetch_lc_time_format();
}
return START_MULTIMONTH_DATE_FORMAT_STRING;
}
public string get_end_multimonth_span_format_string() {
if (END_MULTIMONTH_DATE_FORMAT_STRING == null) {
fetch_lc_time_format();
}
return END_MULTIMONTH_DATE_FORMAT_STRING;
}
public string get_ui(string filename) {
return "/org/gnome/Shotwell/ui/%s".printf(filename);
}
private const string NONINTERPRETABLE_BADGE_FILE = "noninterpretable-video.png";
private Gdk.Pixbuf? noninterpretable_badge_pixbuf = null;
public Gdk.Pixbuf? get_noninterpretable_badge_pixbuf() {
if (noninterpretable_badge_pixbuf == null) {
try {
var path = "/org/gnome/Shotwell/icons/" + NONINTERPRETABLE_BADGE_FILE;
noninterpretable_badge_pixbuf = new Gdk.Pixbuf.from_resource(path);
} catch (Error err) {
error("VideoReader can't load noninterpretable badge image: %s", err.message);
}
}
return noninterpretable_badge_pixbuf;
}
public Gtk.IconTheme get_icon_theme_engine() {
Gtk.IconTheme icon_theme = Gtk.IconTheme.get_default();
icon_theme.add_resource_path("/org/gnome/Shotwell/icons");
return icon_theme;
}
// This method returns a reference to a cached pixbuf that may be shared throughout the system.
// If the pixbuf is to be modified, make a copy of it.
public Gdk.Pixbuf? get_icon(string name, int scale = DEFAULT_ICON_SCALE) {
if (scaled_icon_cache != null) {
string scaled_name = "%s-%d".printf(name, scale);
if (scaled_icon_cache.has_key(scaled_name))
return scaled_icon_cache.get(scaled_name);
}
// stash icons not available through the UI Manager (i.e. used directly as pixbufs)
// in the local cache
if (icon_cache == null)
icon_cache = new Gee.HashMap<string, Gdk.Pixbuf>();
// fetch from cache and if not present, from disk
Gdk.Pixbuf? pixbuf = icon_cache.get(name);
if (pixbuf == null) {
pixbuf = load_icon(name, 0);
if (pixbuf == null)
return null;
icon_cache.set(name, pixbuf);
}
if (scale <= 0)
return pixbuf;
Gdk.Pixbuf scaled_pixbuf = scale_pixbuf(pixbuf, scale, Gdk.InterpType.BILINEAR, false);
if (scaled_icon_cache == null)
scaled_icon_cache = new Gee.HashMap<string, Gdk.Pixbuf>();
scaled_icon_cache.set("%s-%d".printf(name, scale), scaled_pixbuf);
return scaled_pixbuf;
}
public Gdk.Pixbuf? load_icon(string name, int scale = DEFAULT_ICON_SCALE) {
Gdk.Pixbuf pixbuf = null;
try {
var path = "/org/gnome/Shotwell/icons/%s".printf(name);
pixbuf = new Gdk.Pixbuf.from_resource(path);
} catch (Error err) {
critical("Unable to load icon %s: %s", name, err.message);
}
if (pixbuf == null)
return null;
return (scale > 0) ? scale_pixbuf(pixbuf, scale, Gdk.InterpType.BILINEAR, false) : pixbuf;
}
// Get the directory where our help files live. Returns a string
// describing the help path we want, or, if we're installed system
// -wide already, returns null.
public static string? get_help_path() {
// Try looking for our 'index.page' in the build directory.
//
// TODO: Need to look for internationalized help before falling back on help/C
File dir = AppDirs.get_exec_dir();
if (dir.get_path().has_suffix("src")) {
dir = dir.get_parent().get_parent();
}
File help_dir = dir.get_child("help").get_child("C");
File help_index = help_dir.get_child("index.page");
if (help_index.query_exists(null)) {
string help_path;
help_path = help_dir.get_path();
if (!help_path.has_suffix("/"))
help_path += "/";
// Found it.
return help_path;
}
// "./help/C/index.page" doesn't exist, so we're installed
// system-wide, and the caller should assume the default
// help location.
return null;
}
public static void launch_help(Gdk.Screen screen, string? anchor=null) throws Error {
string? help_path = get_help_path();
if(help_path != null) {
// We're running from the build directory; use local help.
// Allow the caller to request a specific page.
if (anchor != null) {
help_path +=anchor;
}
string[] argv = new string[3];
argv[0] = "yelp";
argv[1] = help_path;
argv[2] = null;
Pid pid;
if (Process.spawn_async(AppDirs.get_exec_dir().get_path(), argv, null,
SpawnFlags.SEARCH_PATH | SpawnFlags.STDERR_TO_DEV_NULL, null, out pid)) {
return;
}
warning("Unable to launch %s", argv[0]);
}
// launch from system-installed help
if (anchor != null) {
sys_show_uri(screen, "help:shotwell" + anchor);
} else {
sys_show_uri(screen, "help:shotwell");
}
}
public string to_css_color(Gdk.RGBA color) {
int r = (int) (color.red * 255);
int g = (int) (color.green * 255);
int b = (int) (color.blue * 255);
return "rgb(%d, %d, %d)".printf(r, g, b);
}
public const int ALL_DATA = -1;
private static Gee.Map<Gtk.Widget, Gtk.CssProvider> providers = null;
public static void style_widget(Gtk.Widget widget, string stylesheet) {
if (providers == null)
providers = new Gee.HashMap<Gtk.Widget, Gtk.CssProvider>();
if (providers.has_key(widget))
widget.get_style_context().remove_provider(providers.get(widget));
Gtk.CssProvider styler = new Gtk.CssProvider();
try {
styler.load_from_data(stylesheet, ALL_DATA);
} catch (Error e) {
warning("couldn't parse widget stylesheet '%s': %s", stylesheet,
e.message);
// short-circuit return -- if the stylesheet couldn't be interpreted
// then we can't do anything more
return;
}
widget.get_style_context().add_provider(styler,
Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION);
providers.set(widget, styler);
}
public static int use_header_bar() {
if (Environment.get_variable("SHOTWELL_USE_HEADERBARS") != null) {
return 0;
}
bool use_header;
Gtk.Settings.get_default ().get ("gtk-dialogs-use-header", out use_header);
return use_header ? 1 : 0;
}
public const string CUSTOM_CSS =
"""LibraryWindow .pane-separator {
background-color: @borders;
}
SearchFilterToolbar {
border-width: 0 0 1px 0;
border-style: solid;
border-color: @borders;
}""";
public const string ONIMAGE_FONT_COLOR = "#000000";
public const string ONIMAGE_FONT_BACKGROUND = "rgba(255,255,255,0.5)";
}
|