~ubuntu-branches/ubuntu/precise/gnome-do/precise-proposed

« back to all changes in this revision

Viewing changes to Do.Addins/src/Do.UI/BaseWidgets/ResultsWindow.cs

  • Committer: Bazaar Package Importer
  • Author(s): Christopher James Halse Rogers
  • Date: 2008-04-14 21:36:12 UTC
  • mto: (0.1.8 sid)
  • mto: This revision was merged to the branch mainline in revision 6.
  • Revision ID: james.westby@ubuntu.com-20080414213612-h0dfxdodm6vpcc1h
Tags: upstream-0.4.2.0
ImportĀ upstreamĀ versionĀ 0.4.2.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
66
66
                VBox vbox;
67
67
 
68
68
 
69
 
                public ResultsWindow (Gdk.Color backgroundColor) : base (Gtk.WindowType.Toplevel)
 
69
                public ResultsWindow (Gdk.Color backgroundColor, int NumberResults) 
 
70
                        : base (Gtk.WindowType.Toplevel)
70
71
                {
71
72
                        this.backgroundColor = backgroundColor;
 
73
                        this.NumberResultsDisplayed = NumberResults;
 
74
                        
72
75
                        Build ();
73
76
                        results = null;
74
77
                        selectedIndex = 0;
94
97
 
95
98
                protected virtual void OnShown (object sender, EventArgs args)
96
99
                {
97
 
                        int savedSelectedIndex;    // setting Results calls Clear(), resets this.
 
100
                        // setting Results calls Clear(), resets this.
 
101
                        int savedSelectedIndex;    
98
102
 
99
103
                        // Do this to load the icons.
100
104
                        savedSelectedIndex = selectedIndex;
144
148
                        Add (frame);
145
149
                        frame.Add (vbox);
146
150
                        vbox.BorderWidth = 4;
147
 
                        //vbox.SetSizeRequest (DefaultWindowWidth, (DefaultResultIconSize + 9) * NumberResultsDisplayed);
148
151
                        vbox.Show ();
149
152
 
150
153
                        align = new Alignment (0.0F, 0.0F, 0, 0);