Example #1
0
        public Category(MetaLabel label)
        {
            initial = label.initial;

            metalabel = label;

            labels = new List<UserLabel>();
        }
Example #2
0
File: Broker.cs Project: GNOME/nemo
        public void add_label(long parent_id, string label)
        {
            MetaLabel new_label = new MetaLabel();
            new_label.label = label;
            new_label.parent_db_id = parent_id;

            meta.add_label(new_label, delegate {});
        }
Example #3
0
 public void update_restriction(MetaLabel restricted)
 {
     foreach (UserLabel label in labels) {
         if (label.metalabel.db_id == restricted.db_id) {
             label.restricted = !label.restricted;
             break;
         }
     }
 }
Example #4
0
 private Category create_new_temporary_category()
 {
     MetaLabel label = new MetaLabel();
     label.parent_db_id = -1;
     label.label = Mono.Unix.Catalog.GetString("New Category");
     Category cat = new Category(label);
     cat.search_func = search_func;
     categories.Add(cat);
     return cat;
 }
Example #5
0
        private void remove_label(MetaLabel label)
        {
            foreach (Widget w in representation) {
                if (w.Name == label.label) {
                    w.Destroy();
                    break;
                }
            }

            category.remove_label(label);
        }
Example #6
0
File: Label.cs Project: GNOME/nemo
 public UserLabel(MetaLabel label)
 {
     metalabel = label;
 }
Example #7
0
File: Broker.cs Project: GNOME/nemo
 public void add_label_to_file(File file, MetaLabel label)
 {
     meta.add_label_to_file(file, label, delegate {});
 }
Example #8
0
File: Broker.cs Project: GNOME/nemo
 public void rename_label(MetaLabel label, string new_name)
 {
     meta.rename_label(label, new_name);
 }
Example #9
0
File: Broker.cs Project: GNOME/nemo
 public void remove_label_from_file(File file, MetaLabel label)
 {
     meta.remove_label_from_file(file, label, delegate {});
 }
Example #10
0
File: Broker.cs Project: GNOME/nemo
 public void remove_label(MetaLabel label)
 {
     meta.remove_label(label, delegate {});
 }
Example #11
0
 public void update_restriction_and_update_screen(MetaLabel label)
 {
     update_restriction(label);
     search_func();
 }
Example #12
0
 public void rename_label(MetaLabel label, string new_name)
 {
     Singleton<SingletonWrapper<Broker>>.Instance.wrapped.rename_label(label, new_name);
     search_func();
 }
Example #13
0
 public void remove_label(MetaLabel label)
 {
     Singleton<SingletonWrapper<Broker>>.Instance.wrapped.remove_label(label);
     search_func();
 }
Example #14
0
 public void add_label(MetaLabel l)
 {
     labels.Add(new UserLabel(l));
 }