public FramelessEntry(SearchEntry parent) : base() { this.parent = parent; HasFrame = false; layout = new Pango.Layout(PangoContext); layout.FontDescription = PangoContext.FontDescription.Copy(); parent.StyleSet += OnParentStyleSet; WidthChars = 1; }
private ConfigurationWindow() : base(Gtk.WindowType.Toplevel) { this.Build(); SkipTaskbarHint = true; int i = 0; foreach (string theme in DockServices.Theme.DockThemes.Distinct()) { theme_combo.AppendText(theme); if (DockServices.Theme.DockTheme == theme) { theme_combo.Active = i; } i++; } if (Docky.Controller.Docks.Count() == 1) { ActiveDock = Docky.Controller.Docks.First(); } start_with_computer_checkbutton.Sensitive = DesktopFile.Exists; if (start_with_computer_checkbutton.Sensitive) { start_with_computer_checkbutton.Active = AutoStart; } // setup docklets { docklettiles = new List <DockletTile> (); DockletSearch = new SearchEntry(); DockletSearch.EmptyMessage = Catalog.GetString("Search Docklets..."); DockletSearch.InnerEntry.Changed += delegate { RefreshDocklets(); }; DockletSearch.Ready = true; DockletSearch.Show(); hbox1.PackStart(DockletSearch, true, true, 2); DockletsTileview = new TileView(); DockletsTileview.IconSize = 48; docklet_scroll.AddWithViewport(DockletsTileview); // } // setup helpers if (!UserArgs.DisableDockManager) { helpertiles = new List <HelperTile> (); HelperSearch = new SearchEntry(); HelperSearch.EmptyMessage = Catalog.GetString("Search Helpers..."); HelperSearch.InnerEntry.Changed += delegate { RefreshHelpers(); }; HelperSearch.Ready = true; HelperSearch.Show(); hbox5.PackStart(HelperSearch, true, true, 2); HelpersTileview = new TileView(); HelpersTileview.IconSize = 48; helper_scroll.AddWithViewport(HelpersTileview); DockServices.Helpers.HelperInstalled += delegate { RefreshHelpers(); }; DockServices.Helpers.HelperUninstalled += delegate { RefreshHelpers(); }; } SetupConfigAlignment(); ShowAll(); }
private ConfigurationWindow () : base(Gtk.WindowType.Toplevel) { this.Build (); SkipTaskbarHint = true; int i = 0; foreach (string theme in DockServices.Theme.DockThemes.Distinct ()) { theme_combo.AppendText (theme); if (DockServices.Theme.DockTheme == theme) theme_combo.Active = i; i++; } if (Docky.Controller.Docks.Count () == 1) ActiveDock = Docky.Controller.Docks.First (); start_with_computer_checkbutton.Sensitive = DesktopFile.Exists; if (start_with_computer_checkbutton.Sensitive) start_with_computer_checkbutton.Active = AutoStart; // setup docklets { docklettiles = new List<DockletTile> (); DockletSearch = new SearchEntry (); DockletSearch.EmptyMessage = Catalog.GetString ("Search Docklets..."); DockletSearch.InnerEntry.Changed += delegate { RefreshDocklets (); }; DockletSearch.Ready = true; DockletSearch.Show (); hbox1.PackStart (DockletSearch, true, true, 2); DockletsTileview = new TileView (); DockletsTileview.IconSize = 48; docklet_scroll.AddWithViewport (DockletsTileview); // } // setup helpers if (!UserArgs.DisableDockManager) { helpertiles = new List<HelperTile> (); HelperSearch = new SearchEntry (); HelperSearch.EmptyMessage = Catalog.GetString ("Search Helpers..."); HelperSearch.InnerEntry.Changed += delegate { RefreshHelpers (); }; HelperSearch.Ready = true; HelperSearch.Show (); hbox5.PackStart (HelperSearch, true, true, 2); HelpersTileview = new TileView (); HelpersTileview.IconSize = 48; helper_scroll.AddWithViewport (HelpersTileview); DockServices.Helpers.HelperInstalled += delegate { RefreshHelpers (); }; DockServices.Helpers.HelperUninstalled += delegate { RefreshHelpers (); }; } SetupConfigAlignment(); ShowAll (); }