~zeitgeist/plank/zeitgeist

« back to all changes in this revision

Viewing changes to lib/DockPreferences.vala

  • Committer: Rico Tzschichholz
  • Date: 2013-08-20 12:13:59 UTC
  • Revision ID: ricotz@ubuntu.com-20130820121359-dlk93qk8wjd11p56
prefs: Add LockItems setting

Provides the option to prevent drag'n'drop actions and lock items on
the dock.

Show diffs side-by-side

added added

removed removed

Lines of Context:
64
64
                [Description(nick = "items-alignment", blurb = "The alignment of the items in this dock.")]
65
65
                public Gtk.Align ItemsAlignment { get; set; }
66
66
                
 
67
                [Description(nick = "lock-items", blurb = "Whether to prevent drag'n'drop actions and lock items on the dock.")]
 
68
                public bool LockItems { get; set; }
 
69
                
67
70
                /**
68
71
                 * {@inheritDoc}
69
72
                 */
105
108
                        Theme = Plank.Drawing.Theme.DEFAULT_NAME;
106
109
                        Alignment = Gtk.Align.CENTER;
107
110
                        ItemsAlignment = Gtk.Align.CENTER;
 
111
                        LockItems = false;
108
112
                }
109
113
                
110
114
                void monitors_changed ()
206
210
                        
207
211
                        case "ItemsAlignment":
208
212
                                break;
 
213
                        
 
214
                        case "LockItems":
 
215
                                break;
209
216
                        }
210
217
                }
211
218
        }