~elementary-apps/pantheon-files/trunk

« back to all changes in this revision

Viewing changes to src/View/Chrome/LocationBar.vala

  • Committer: am.monkeyd at gmail
  • Date: 2010-11-08 13:17:02 UTC
  • Revision ID: am.monkeyd@gmail.com-20101108131702-rqeywh4r5pyx2ycz
let's roll

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
//  
 
2
//  LocationBar.cs
 
3
//  
 
4
//  Author:
 
5
//       mathijshenquet <${AuthorEmail}>
 
6
// 
 
7
//  Copyright (c) 2010 mathijshenquet
 
8
// 
 
9
//  This program is free software: you can redistribute it and/or modify
 
10
//  it under the terms of the GNU General Public License as published by
 
11
//  the Free Software Foundation, either version 3 of the License, or
 
12
//  (at your option) any later version.
 
13
// 
 
14
//  This program is distributed in the hope that it will be useful,
 
15
//  but WITHOUT ANY WARRANTY; without even the implied warranty of
 
16
//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
17
//  GNU General Public License for more details.
 
18
// 
 
19
//  You should have received a copy of the GNU General Public License
 
20
//  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
21
using Gtk;
 
22
 
 
23
namespace Marlin.View.Chrome
 
24
{
 
25
        public class LocationBar : ToolItem
 
26
        {
 
27
                private Entry entry;
 
28
                
 
29
                public new string path{
 
30
                        set{
 
31
                                entry.text = value;     
 
32
                        }
 
33
                        get{
 
34
                                return entry.text;
 
35
                        }
 
36
                }
 
37
                
 
38
                public new signal void activate();
 
39
                
 
40
                public LocationBar ()
 
41
                {
 
42
                        entry = new Entry ();
 
43
                        
 
44
                        set_expand(true);
 
45
                        add(entry);
 
46
                        
 
47
                        entry.activate.connect(() => { activate(); });
 
48
                }
 
49
        }
 
50
}
 
51