summaryrefslogtreecommitdiff
path: root/src/Commands.vala
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2019-10-03 15:22:07 +0200
committerJörg Frings-Fürst <debian@jff.email>2019-10-03 15:22:07 +0200
commitde88de73ad9d13cc2a54668aa4bc6523c196ffa9 (patch)
treee46fa083635b12388acefc2950ebccb54f4c5253 /src/Commands.vala
parentb57c8088c3dad237b04bb792c6dade9c470ce9fd (diff)
New upstream version 0.30.7upstream/0.30.7
Diffstat (limited to 'src/Commands.vala')
-rw-r--r--src/Commands.vala18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/Commands.vala b/src/Commands.vala
index 6924f82..2b9eac1 100644
--- a/src/Commands.vala
+++ b/src/Commands.vala
@@ -12,7 +12,7 @@ public abstract class PageCommand : Command {
private Photo library_photo = null;
private CollectionPage collection_page = null;
- public PageCommand(string name, string explanation) {
+ protected PageCommand(string name, string explanation) {
base (name, explanation);
page = AppWindow.get_instance().get_current_page();
@@ -103,7 +103,7 @@ public abstract class PageCommand : Command {
public abstract class SingleDataSourceCommand : PageCommand {
protected DataSource source;
- public SingleDataSourceCommand(DataSource source, string name, string explanation) {
+ protected SingleDataSourceCommand(DataSource source, string name, string explanation) {
base(name, explanation);
this.source = source;
@@ -130,7 +130,7 @@ public abstract class SimpleProxyableCommand : PageCommand {
private SourceProxy proxy;
private Gee.HashSet<SourceProxy> proxies = new Gee.HashSet<SourceProxy>();
- public SimpleProxyableCommand(Proxyable proxyable, string name, string explanation) {
+ protected SimpleProxyableCommand(Proxyable proxyable, string name, string explanation) {
base (name, explanation);
proxy = proxyable.get_proxy();
@@ -183,7 +183,7 @@ public abstract class SimpleProxyableCommand : PageCommand {
public abstract class SinglePhotoTransformationCommand : SingleDataSourceCommand {
private PhotoTransformationState state;
- public SinglePhotoTransformationCommand(Photo photo, string name, string explanation) {
+ protected SinglePhotoTransformationCommand(Photo photo, string name, string explanation) {
base(photo, name, explanation);
state = photo.save_transformation_state();
@@ -207,7 +207,7 @@ public abstract class GenericPhotoTransformationCommand : SingleDataSourceComman
private PhotoTransformationState original_state = null;
private PhotoTransformationState transformed_state = null;
- public GenericPhotoTransformationCommand(Photo photo, string name, string explanation) {
+ protected GenericPhotoTransformationCommand(Photo photo, string name, string explanation) {
base(photo, name, explanation);
}
@@ -282,7 +282,7 @@ public abstract class MultipleDataSourceCommand : PageCommand {
private Gee.ArrayList<DataSource> acted_upon = new Gee.ArrayList<DataSource>();
private Gee.HashSet<SourceCollection> hooked_collections = new Gee.HashSet<SourceCollection>();
- public MultipleDataSourceCommand(Gee.Iterable<DataView> iter, string progress_text,
+ protected MultipleDataSourceCommand(Gee.Iterable<DataView> iter, string progress_text,
string undo_progress_text, string name, string explanation) {
base(name, explanation);
@@ -414,7 +414,7 @@ public abstract class MultipleDataSourceAtOnceCommand : PageCommand {
private Gee.HashSet<DataSource> sources = new Gee.HashSet<DataSource>();
private Gee.HashSet<SourceCollection> hooked_collections = new Gee.HashSet<SourceCollection>();
- public MultipleDataSourceAtOnceCommand(Gee.Collection<DataSource> sources, string name,
+ protected MultipleDataSourceAtOnceCommand(Gee.Collection<DataSource> sources, string name,
string explanation) {
base (name, explanation);
@@ -490,7 +490,7 @@ public abstract class MultiplePhotoTransformationCommand : MultipleDataSourceCom
private Gee.HashMap<Photo, PhotoTransformationState> map = new Gee.HashMap<
Photo, PhotoTransformationState>();
- public MultiplePhotoTransformationCommand(Gee.Iterable<DataView> iter, string progress_text,
+ protected MultiplePhotoTransformationCommand(Gee.Iterable<DataView> iter, string progress_text,
string undo_progress_text, string name, string explanation) {
base(iter, progress_text, undo_progress_text, name, explanation);
@@ -963,7 +963,7 @@ public abstract class MovePhotosCommand : Command {
protected RealMovePhotosCommand real_command;
- public MovePhotosCommand(string name, string explanation) {
+ protected MovePhotosCommand(string name, string explanation) {
base(name, explanation);
}