~desrt/libvalmynd/master

« back to all changes in this revision

Viewing changes to gtk/binding.vala

  • Committer: Ryan Lortie
  • Date: 2011-04-22 05:27:05 UTC
  • Revision ID: git-v1:868585efa7e56529f90d2a239fe4a04be5b07ac0
rename Valmynd.ItemType to Valmynd.MenuItemType

'ItemType' is almost as bad as 'Item'.

Show diffs side-by-side

added added

removed removed

Lines of Context:
86
86
 
87
87
                public global::Gtk.MenuItem create_item (Valmynd.ModelItem item, ActionGroup actions) {
88
88
                        switch (item.get_type ()) {
89
 
                        case ItemType.ITEM:
 
89
                        case MenuItemType.ITEM:
90
90
                                var mi = new global::Gtk.MenuItem.with_label (item.get_label ());
91
91
                                mi.show ();
92
92
 
93
93
                                return mi;
94
94
 
95
 
                        case ItemType.SUBMENU:
 
95
                        case MenuItemType.SUBMENU:
96
96
                                var mi = new global::Gtk.MenuItem.with_label (item.get_label ());
97
97
                                var child = item.get_link ("menu");
98
98
 
104
104
 
105
105
                                return mi;
106
106
 
107
 
                        case ItemType.SECTION:
 
107
                        case MenuItemType.SECTION:
108
108
                                assert_not_reached ();
109
109
 
110
 
                        case ItemType.SEPARATOR:
 
110
                        case MenuItemType.SEPARATOR:
111
111
                                var mi = new global::Gtk.SeparatorMenuItem ();
112
112
                                mi.show ();
113
113
                                return mi;
114
114
 
115
 
                        case ItemType.OTHER:
 
115
                        case MenuItemType.OTHER:
116
116
                                var module = Valmynd.Gtk.Module.request (item.get_type_name ());
117
117
 
118
118
                                if (module != null) {