SetWindowUrgencyHint() public static method

public static SetWindowUrgencyHint ( Gtk window, bool setting ) : void
window Gtk
setting bool
return void
Example #1
0
        private void page_UrgencyHintChanged(object o, EventArgs args)
        {
            RefreshCounts();

            Window mainWindow = (Window)this.Toplevel;

            if (!mainWindow.IsActive)
            {
                // YUCK!!
                bool       urgencyHint = false;
                TreeView[] trees       = new TreeView[] { topItemsTree, searchItemsTree, bottomItemsTree };
                foreach (TreeView tree in trees)
                {
                    tree.Model.Foreach(delegate(TreeModel model, TreePath path, TreeIter iter) {
                        ISidebarItem item = (ISidebarItem)model.GetValue(iter, 0);
                        if (item.PageWidget != null && ((IPage)item.PageWidget).UrgencyHint == true)
                        {
                            urgencyHint = true;
                            return(true);
                        }
                        else
                        {
                            return(false);
                        }
                    });
                    if (urgencyHint)
                    {
                        Gui.SetWindowUrgencyHint(mainWindow, true);
                        return;
                    }
                }
                Gui.SetWindowUrgencyHint(mainWindow, false);
            }
        }
Example #2
0
 protected void SetNotUrgent()
 {
     Gui.SetWindowUrgencyHint(window, false);
 }
Example #3
0
 protected void SetUrgent()
 {
     Gui.SetWindowUrgencyHint(window, true);
 }