~and471/slickpanel/trunk

« back to all changes in this revision

Viewing changes to lib/item.vala

  • Committer: Andrew Higginson
  • Date: 2014-12-29 17:48:31 UTC
  • Revision ID: at.higginson@gmail.com-20141229174831-bukedaw8kny4aq8t
updating

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
    WINDOW_LIST,
14
14
    INDICATOR_BAR,
15
15
    WORKSPACE_SWITCHER,
 
16
    SPACER,
16
17
    N_TYPES;
17
18
    
18
19
    public static ItemType from_string(string string_) {
23
24
                return ItemType.INDICATOR_BAR;
24
25
            case "SLICK_PANEL_SETTINGS_ITEM_TYPE_WORKSPACE_SWITCHER":
25
26
                return ItemType.WORKSPACE_SWITCHER;
 
27
            case "SLICK_PANEL_SETTINGS_ITEM_TYPE_SPACER":
 
28
                return ItemType.SPACER;
26
29
            default:
27
30
                assert_not_reached();
28
31
        }
36
39
                return _("Indicator Bar");
37
40
            case WORKSPACE_SWITCHER:
38
41
                return _("Workspace Switcher");
 
42
            case SPACER:
 
43
                return _("Spacer");
39
44
            default:
40
45
                assert_not_reached();
41
46
        }
49
54
                return "slickpanel-indicator-bar";
50
55
            case WORKSPACE_SWITCHER:
51
56
                return "slickpanel-workspace-switcher";
 
57
            case SPACER:
 
58
                return "slickpanel-spacer";
52
59
            default:
53
60
                assert_not_reached();
54
61
        }