Exemple #1
0
 public override void Initialize()
 {
     Window                 = new GtkPopoverWindow(Gtk.WindowType.Toplevel);
     Window.TypeHint        = Gdk.WindowTypeHint.Utility;
     Window.SkipPagerHint   = true;
     Window.SkipTaskbarHint = true;
     Window.Add(CreateMainLayout());
 }
Exemple #2
0
        public override void Initialize()
        {
            Window = new GtkPopoverWindow(windowType == PopupWindow.PopupType.Tooltip ? Gtk.WindowType.Popup : Gtk.WindowType.Toplevel);

            switch (windowType)
            {
            case PopupWindow.PopupType.Tooltip:
                Window.TypeHint  = Gdk.WindowTypeHint.Tooltip;
                Window.Decorated = false;
                break;

            case PopupWindow.PopupType.Menu:
                Window.TypeHint  = Gdk.WindowTypeHint.PopupMenu;
                Window.Decorated = false;
                break;
            }

            Window.SkipPagerHint   = true;
            Window.SkipTaskbarHint = true;
            Window.Add(CreateMainLayout());
        }