~and471/+junk/do-with-docky

« back to all changes in this revision

Viewing changes to Do/src/Do.Core/Controller.cs

  • Committer: rugby471 at gmail
  • Date: 2010-10-15 16:08:38 UTC
  • Revision ID: rugby471@gmail.com-20101015160838-z9m3utbf7bxzb5ty
reverted to before docky removal

Show diffs side-by-side

added added

removed removed

Lines of Context:
104
104
 
105
105
                public void Initialize ()
106
106
                {
107
 
                        if (Do.Preferences.Theme == "Docky") {
108
 
                                string message = Catalog.GetString (
109
 
                                        "<b>Docky is no longer a Do theme!</b>\n" + 
110
 
                                        "It is now available as a stand-alone application. " +
111
 
                                        "Your GNOME Do theme has been reset to Classic. " +
112
 
                                        "Please feel free to change it in Preferences."
113
 
                                );
114
 
 
115
 
                                Gtk.MessageDialog md = new Gtk.MessageDialog (null, Gtk.DialogFlags.DestroyWithParent, 
116
 
                                        Gtk.MessageType.Info, Gtk.ButtonsType.Ok, true, message);
117
 
                                md.Response += (o, args) => md.Destroy ();
118
 
                                md.ShowAll ();
119
 
                                Do.Preferences.Theme = "Classic";
120
 
                        }
121
 
                        
122
107
                        SetTheme (Do.Preferences.Theme);
123
108
                        Do.Preferences.ThemeChanged += OnThemeChanged;
124
109
                        Screen.Default.CompositedChanged += OnCompositingChanged;
461
446
 
462
447
#region KeyPress Handling
463
448
 
 
449
                Key IfVertical (Key ifKey, Key elseKey)
 
450
                {
 
451
                        return Orientation == ControlOrientation.Vertical ? ifKey : elseKey;
 
452
                }
 
453
 
 
454
                Key UpKey    { get { return IfVertical (Key.Up, Key.Left); } }
 
455
                Key DownKey  { get { return IfVertical (Key.Down, Key.Right); } }
 
456
                Key LeftKey  { get { return IfVertical (Key.Left, Key.Up); } }
 
457
                Key RightKey { get { return IfVertical (Key.Right, Key.Down); } }
 
458
                
464
459
                private void KeyPressWrap (EventKey evnt)
465
460
                {
466
461
                        Key key = (Key) evnt.KeyValue;