bool CommitPendingChanges() { if (commit_delay.IsPending) { commit_delay.Stop(); ((PhotoQuery)Query).Commit(changed_photo); } return(true); }
private void UpdateButtons() { left.Sensitive = (scroll_offset < 0); right.Sensitive = (box_counts.Length * BoxWidth > background.Width - scroll_offset); if (!left.Sensitive && left_delay.IsPending) { left_delay.Stop(); } if (!right.Sensitive && right_delay.IsPending) { right_delay.Stop(); } }
public void Quit() { hide_cursor_delay.Stop(); FSpot.Platform.ScreenSaver.UnInhibit(); Destroy(); }
void HandleDestroy(object sender, EventArgs args) { delay.Stop(); if (thread.IsAlive) { thread.Abort(); } }
public bool HideControls(bool force) { int x, y; Gdk.ModifierType type; if (!force && IsRealized) { ControlBox.GdkWindow.GetPointer(out x, out y, out type); if (x < ControlBox.Allocation.Width && y < ControlBox.Allocation.Height) { hide.Start(); return(true); } } hide.Stop(); ControlBox.Hide(); return(false); }
public virtual void EndDrag(double x, double y) { timer.Stop(); Rectangle box = Bounds(); double middle = box.X + (box.Width / 2.0); int position; DragOffset = 0; Dragging = false; if (selector.BoxXHit(middle, out position)) { this.SetPosition(position); State = StateType.Prelight; } else { State = selector.State; } }
public void Stop() { running = false; flip.Stop(); }
protected override void OnDestroyed() { hide.Stop(); fade.Stop(); base.OnDestroyed(); }