void HandleRowDeleted(object o, Gtk.RowDeletedArgs args) { Gtk.TreeIter outIter; if (TreeStore.GetIter(out outIter, args.Path) && outIter.Equals(Iter)) { UnregisterTreeAnimation(this); } }
void OnRowDeletedHandler(object sender, Gtk.RowDeletedArgs args) { if (NumberOfTasksChanged == null) { return; } NumberOfTasksChanged(this, EventArgs.Empty); }
static void RowDeletedSignalCallback(IntPtr arg0, IntPtr arg1, IntPtr gch) { GLib.Signal sig = ((GCHandle)gch).Target as GLib.Signal; if (sig == null) { throw new Exception("Unknown signal GC handle received " + gch); } Gtk.RowDeletedArgs args = new Gtk.RowDeletedArgs(); args.Args = new object[1]; if (arg1 == IntPtr.Zero) { args.Args[0] = null; } else { args.Args[0] = new Gtk.TreePath(arg1); } Gtk.RowDeletedHandler handler = (Gtk.RowDeletedHandler)sig.Handler; handler(GLib.Object.GetObject(arg0), args); }
void HandleRowDeleted (object o, RowDeletedArgs args) { var deleted = args.Path.Indices; int i; for (i = 0; i < deleted.Length && i < indices.Length; i++) { if (deleted[i] > indices[i]) { // the deleted node is listed below the node we are watching, ignore it return; } if (deleted[i] < indices[i]) { // the deleted node is listed above the node we are watching, update our position indices[i]--; path = null; return; } } if (deleted.Length <= indices.Length) { // the node we are watching (or its parent) has been deleted Invalidate (); } }
/// <summary> /// Handles the row deletion event of the image tree model. /// </summary> /// <param name="s"> /// A <see cref="System.Object"/> /// </param> /// <param name="a"> /// A <see cref="RowDeletedArgs"/> /// </param> private void OnImagesStoreRowDeleted(object s, RowDeletedArgs a) { nextImageBtn.Sensitive = imagesStore.IterNChildren() > 0; }
private void row_deleted(object o, RowDeletedArgs args) { changed = true; }
public void OnRowDeleted(object sender, RowDeletedArgs args) { --NrOfDocuments; }
private void HandleDeleted(object sender, RowDeletedArgs args) { QueueUpdate(); }
private void OnRowDeleted(object o, RowDeletedArgs args) { iFolderViewGroup.CheckThread(); if (args == null || args.Path == null) return; iFolderViewItem item = (iFolderViewItem)items[args.Path.ToString()]; if (item != null) { Console.WriteLine("iFolderViewGroup.OnRowDeleted: {0}", item.Holder.iFolder.Name); } if (rebuildTableTimeoutID != 0) { GLib.Source.Remove(rebuildTableTimeoutID); rebuildTableTimeoutID = 0; } rebuildTableTimeoutID = GLib.Timeout.Add( rebuildTimeout, new GLib.TimeoutHandler(RebuildTableCallback)); UpdateVisibility(); }
protected void OnImageListRowRemoved(object o, RowDeletedArgs arg) { TreeIter iter; if(arg.Path.Depth == 2) { arg.Path.Up (); this.GetIter (out iter, arg.Path); if(!this.IterHasChild (iter)) this.Remove (ref iter); } }
/// <summary> /// Updates the button greyed out states whenever an item is deleted. /// </summary> protected void HandleRowDeleted (object sender, RowDeletedArgs a) { UpdatePriorityButtons (); }
private void OnModelRowDeleted (object o, RowDeletedArgs args) { EmitSubtitleCountChangedEvent(); }
private void OnGroupRowDeleted(object sender, RowDeletedArgs args) { if (groupButtonMap.ContainsKey (args.Path.Indices [0]) == false) { Logger.Debug ("GroupWindow.OnGroupRowDeleted () called on a path we don't know about."); return; } GroupButton groupButton = groupButtonMap [args.Path.Indices [0]]; Logger.Debug ("GroupWindow.OnGroupRowDeleted removing group: {0}", groupButton.PersonGroup.DisplayName); groupButtonMap.Remove (args.Path.Indices [0]); groupButtonsVBox.Remove (groupButton); // If this is the currently selected group, switch the view // back to the Everyone group so that there aren't weirdnesses. if (selectedGroup == groupButton.PersonGroup) { OnEveryoneClicked (this, EventArgs.Empty); } // FIXME: Determine whether we should be calling groupButton.Destroy () here. groupButton.Destroy (); }
void Model_RowDeleted(object o, RowDeletedArgs e) { Invalidate (); }
void HandleRowDeleted (object o, RowDeletedArgs args) { var deleted = args.Path.Indices; int i; //If deleted is deeper then this path, it can't effect this path if (deleted.Length > indices.Length) return; for (i = 0; i < deleted.Length && i < indices.Length; i++) { if (deleted[i] > indices[i]) { // the deleted node is listed below the node we are watching, ignore it return; } if (deleted [i] < indices [i] && i < deleted.Length - 1) { // deleted is in different tree(not effecting our path) return; } if (deleted[i] < indices[i]) { // the deleted node is listed above the node we are watching, update our position indices[i]--; path = null; return; } } if (deleted.Length <= indices.Length) { // the node we are watching (or its parent) has been deleted Invalidate (); } }
private void OnRowDeleted(object o, RowDeletedArgs args) { if (args == null || args.Path == null) return; if (rebuildTableTimeoutID != 0) { GLib.Source.Remove(rebuildTableTimeoutID); rebuildTableTimeoutID = 0; } rebuildTableTimeoutID = GLib.Timeout.Add( rebuildTimeout, new GLib.TimeoutHandler(RebuildTableCallback)); UpdateVisibility(); }
private void OnPersonRowDeleted(object sender, RowDeletedArgs args) { // Logger.Debug("PersonView:OnPersonRowDeleted Called"); PersonCard card = (PersonCard) vbox.Children[args.Path.Indices [0]]; vbox.Remove(card); foreach(TreeIter iter in personCardMap.Keys) { if(card == personCardMap[iter]) { personCardMap.Remove(iter); return; } } }