summaryrefslogtreecommitdiff
path: root/src/actionGroups
diff options
context:
space:
mode:
authorJörg Frings-Fürst <jff@merkur>2014-07-23 11:40:08 +0200
committerJörg Frings-Fürst <jff@merkur>2014-07-23 11:40:08 +0200
commit6edfb34cb3eee958e392a433ae9ac4f240279d09 (patch)
treed33f9e9032809dba2ccb1b8c9ccc928507c38cf6 /src/actionGroups
parent1f6f24308e96040962794c5a9ffd81597b5e072a (diff)
Imported Upstream version 0.5.5upstream/0.5.5
Diffstat (limited to 'src/actionGroups')
-rw-r--r--src/actionGroups/clipboardGroup.vala4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/actionGroups/clipboardGroup.vala b/src/actionGroups/clipboardGroup.vala
index 836c927..c104d62 100644
--- a/src/actionGroups/clipboardGroup.vala
+++ b/src/actionGroups/clipboardGroup.vala
@@ -79,7 +79,7 @@ public class ClipboardGroup : ActionGroup {
/// The maximum remembered items of the clipboard.
/////////////////////////////////////////////////////////////////////
- private const int max_items = 6;
+ private static const int max_items = 6;
private Gee.ArrayList<ClipboardItem?> items;
@@ -98,7 +98,7 @@ public class ClipboardGroup : ActionGroup {
private void add_item(Gtk.Clipboard c, Gtk.SelectionData contents) {
var new_item = new ClipboardItem(contents);
- if (this.items.size == this.max_items)
+ if (this.items.size == ClipboardGroup.max_items)
this.items.remove_at(0);
this.items.add(new_item);