~alexlauni/do/clear-universe

« back to all changes in this revision

Viewing changes to Do.Interface.Linux/src/Do.Interface/ClassicInterface/ClassicWindow.cs

  • Committer: Jason Smith
  • Date: 2009-06-24 03:58:55 UTC
  • Revision ID: jason@t500-20090624035855-cna4kbtr6u6obhcq
Fix crash from switching themes introduced by memory leak fix
Fix references to GConf in themes

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
                PositionWindow positionWindow;
42
42
                HBox resultsHBox;
43
43
                IconBox[] iconbox;
44
 
                GConf.Client gconfClient;
45
44
                IDoController controller;
46
45
                
47
46
                const int IconBoxIconSize = 128;
96
95
                {
97
96
                        this.controller = controller;
98
97
                        
99
 
                        gconfClient = new GConf.Client ();
100
 
                        gconfClient.AddNotify ("/desktop/gnome/interface",
101
 
                                new GConf.NotifyEventHandler (DesktopThemeChanged));
102
 
                        
103
98
                        Build ();
104
99
                }
105
100
                
250
245
                        Reposition ();
251
246
                }
252
247
                
253
 
                private void DesktopThemeChanged (object o, GConf.NotifyEventArgs e)
 
248
                protected override void OnStyleSet (Gtk.Style previous_style)
254
249
                {
255
 
                        //this is needed to account for the delay between the gconf change
256
 
                        //and the theme change propogating to this application.
257
 
                        GLib.Timeout.Add (3000, delegate {
258
 
                                Gdk.Threads.Enter ();
259
 
                                frame.FrameColor = frame.FillColor = BackgroundColor;
260
 
                                resultsWindow.UpdateColors (BackgroundColor);
261
 
                                Gdk.Threads.Leave ();
262
 
                                return false;
263
 
                        });
 
250
                        frame.FrameColor = frame.FillColor = BackgroundColor;
 
251
                        resultsWindow.UpdateColors (BackgroundColor);
 
252
                        
 
253
                        base.OnStyleSet (previous_style);
264
254
                }
265
255
                
266
256
                public virtual void Reposition ()