~ubuntu-branches/ubuntu/wily/gnome-do/wily

« back to all changes in this revision

Viewing changes to Do.Interface.Linux.AnimationBase/src/Do.Interface/Do.Interface.AnimationBase/BezelDrawingArea.cs

  • Committer: Bazaar Package Importer
  • Author(s): Christopher James Halse Rogers
  • Date: 2011-02-15 21:50:02 UTC
  • mfrom: (1.1.10 upstream)
  • Revision ID: james.westby@ubuntu.com-20110215215002-1j8ylb69o15asb06
Tags: 0.8.4-0ubuntu1
* The Race Against FF upload.  Merge from unreleased Debian git.
  Remaining Ubuntu changes:
  + debian/patches/05_disable_resize_grips.patch.diff:
    Disable resize handles for the Do windows.
  + debian/control:
    Bump gtk# build dep for HasResizeGrip API.
* New Debian changes:
* The long fortold release
  + Fixes a threadsafety issue resulting in 100% CPU usage (Closes: 565591,
    LP: #450852).
  + Proxies all keyring calls to the GTK main thread, as required by the new
    gnome-keyring (Closes: 603876, LP: #553643)
* debian/patches/00_bundledlibs.dpatch:
* debian/rules:
  + Upstream has dropped bundled gmcs binary; now 100% DFSG-free, so we don't
    have to repack the tarball or patch the buildsystem.
* debian/patches/03_disable_docky.dpatch:
  + Drop.  Docky is now gone in the upstream tarball.
* debian/rules:
* debian/control:
* debian/patches/*:
  + Switch to quilt to harmonise with other pkg-cli-* packages.
* debian/control:
  + Drop recommends on gnome-do-docklets.  Docky is now a separate package,
    so the docklets are useless for Do.
  + Bump Breaks on gnome-do-plugins to 0.8.3.  Do no longer provides the Wink
    library, which has been imported into the 0.8.3 do-plugins sources.
  + Bump standards-version; no changes needed.
  + Migrate to git and update VCS fields appropriately

Show diffs side-by-side

added added

removed removed

Lines of Context:
56
56
#region Static Area
57
57
                static IPreferences prefs = Services.Preferences.Get<BezelDrawingArea> ();
58
58
                public static event EventHandler ThemeChanged;
 
59
 
 
60
                static BezelDrawingArea()
 
61
                {
 
62
                        prefs.PreferencesChanged += HandlePreferencesChanged;
 
63
                }
 
64
                
 
65
                static void HandlePreferencesChanged (object o, PreferencesChangedEventArgs e)
 
66
                {
 
67
                        if (e.Key == "Animated" || e.Key == "WindowRadius")
 
68
                                return;
 
69
                        OnThemeChanged ();
 
70
                }
59
71
                
60
72
                public static bool Animated {
61
73
                        get {
72
84
                        }
73
85
                        set {
74
86
                                prefs.Set<string> ("TitleRenderer", value);
75
 
                                OnThemeChanged ();
76
87
                        }
77
88
                }
78
89
                
82
93
                        }
83
94
                        set {
84
95
                                prefs.Set<string> ("PaneRenderer", value);
85
 
                                OnThemeChanged ();
86
96
                        }
87
97
                }
88
98
                
92
102
                        }
93
103
                        set {
94
104
                                prefs.Set<string> ("WindowRenderer", value);
95
 
                                OnThemeChanged ();
96
105
                        }
97
106
                }
98
107
                
102
111
                        }
103
112
                        set {
104
113
                                prefs.Set<string> ("BackgroundColor", value);
105
 
                                OnThemeChanged ();
106
114
                        }
107
115
                }
108
116
                
112
120
                        } 
113
121
                        set {
114
122
                                prefs.Set<int> ("WindowRadius", Math.Max (-1, value));
115
 
                                OnThemeChanged ();
116
123
                        }
117
124
                }
118
125
                
122
129
                        }
123
130
                        set {
124
131
                                prefs.Set<bool> ("Shadow", value);
125
 
                                OnThemeChanged ();
126
132
                        }
127
133
                }
128
134
                
135
141
                public static void ResetBackgroundStyle ()
136
142
                {
137
143
                        prefs.Set<string> ("BackgroundColor", "default");
138
 
                        OnThemeChanged ();
139
144
                }
140
145
                
141
146
                private static void OnThemeChanged ()
404
409
                        TextUtility = new TextRenderer (this);
405
410
                        
406
411
                        DoubleBuffered = false;
407
 
                        prefs = Services.Preferences.Get<BezelDrawingArea> ();
408
412
                        this.preview = preview;
409
413
                        this.theme = theme;
410
414