~tintou/slingshot/fix_rtl

« back to all changes in this revision

Viewing changes to src/Widgets/Switcher.vala

  • Committer: Giulio Collura
  • Date: 2011-08-29 10:49:05 UTC
  • Revision ID: random.cpp@gmail.com-20110829104905-wkj00e0t0j9uvcko
Now page_switcher works perfectly, added --silent argument to start slingshot without showing it

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
 
29
29
        public new List<Button> children;
30
30
        public int active = -1;
 
31
        public int old_active = -1;
31
32
 
32
33
        private CssProvider style_provider;
33
34
 
82
83
            if (active >= 0)
83
84
                children.nth_data (active).set_state (StateType.NORMAL);
84
85
 
 
86
            old_active = active;
 
87
            active = new_active;
85
88
            active_changed (new_active);
86
 
            active = new_active;
87
89
            children.nth_data (active).set_state (StateType.SELECTED);
88
90
 
89
91
        }