Esempio n. 1
0
 void WidgetSelected(object s, Wrapper.WidgetEventArgs args)
 {
     if (!syncing)
     {
         syncing = true;
         if (args.Widget != null)
         {
             Wrapper.Widget w = Wrapper.Widget.Lookup(args.Widget);
             if (w != null)
             {
                 TreeIter?it = FindNode(w, true);
                 if (it != null)
                 {
                     ExpandToPath(store.GetPath(it.Value));
                     Selection.SelectIter(it.Value);
                     ScrollToCell(store.GetPath(it.Value), Columns[0], false, 0, 0);
                     NotifySelectionChanged(w);
                 }
             }
         }
         else
         {
             Selection.UnselectAll();
             NotifySelectionChanged(null);
         }
         syncing = false;
     }
 }
Esempio n. 2
0
        void OnContentsChanged(object s, Wrapper.WidgetEventArgs args)
        {
            TreeIter?node = FindNode(args.WidgetWrapper, false);

            if (node != null)
            {
                RefreshNode(node.Value);
            }
        }
        void OnWidgetSelected(object s, Wrapper.WidgetEventArgs args)
        {
            ObjectWrapper wrapper = args != null ? args.WidgetWrapper : null;

            if (wrapper == selection)
            {
                return;
            }
            selection = wrapper;
            RefreshTree();
        }
Esempio n. 4
0
 void Selected(object s, Wrapper.WidgetEventArgs args)
 {
     TargetObject = args != null && args.Widget != null? args.Widget : null;
 }
Esempio n. 5
0
 void OnSelectionChanged(object s, Wrapper.WidgetEventArgs args)
 {
     UpdateSelection(args.WidgetWrapper);
 }
Esempio n. 6
0
 void OnWidgetSelected(object s, Wrapper.WidgetEventArgs args)
 {
     selection = args != null ? args.WidgetWrapper : null;
     RefreshTree();
 }
Esempio n. 7
0
 void Selected(object s, Wrapper.WidgetEventArgs args)
 {
     newSelection = args != null ? args.WidgetWrapper : null;
     GLib.Timeout.Add(50, new GLib.TimeoutHandler(SelectedHandler));
 }