~kjtehprogrammer/pantheon-files/editable-pathbar

« back to all changes in this revision

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

  • Committer: Cody Garver
  • Author(s): Yosef Or Boczko
  • Date: 2014-04-17 23:02:49 UTC
  • mfrom: (1467.1.1 pantheon-files)
  • Revision ID: cody@elementaryos.org-20140417230249-cwrg9bj5ddh9uekc
Port to GtkHeaderBar, requires Gtk >= 3.10

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
 
23
23
namespace Marlin.View.Chrome {
24
24
 
25
 
    public class ViewSwitcher : Gtk.ToolItem {
 
25
    public class ViewSwitcher : Gtk.Box {
26
26
        public Granite.Widgets.ModeButton switcher;
27
27
 
28
28
        private ViewMode _mode;
64
64
        private Gtk.Image miller;
65
65
 
66
66
        public ViewSwitcher (Gtk.ActionGroup action_group) {
 
67
            Object (orientation: Gtk.Orientation.HORIZONTAL);
 
68
 
67
69
            main_actions = action_group;
68
70
 
69
71
            switcher = new Granite.Widgets.ModeButton ();
99
101
 
100
102
            switcher.sensitive = true;
101
103
 
102
 
            add (switcher);
 
104
            pack_start (switcher, true, true, 0);
103
105
        }
104
106
    }
105
107
}
 
 
b'\\ No newline at end of file'