summaryrefslogtreecommitdiff
path: root/src/actionGroups
diff options
context:
space:
mode:
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);