Exemple #1
0
        public ClockThemeSelector(ClockDockItem dockItem)
        {
            DockItem = dockItem;

            SkipTaskbarHint = true;
            TypeHint        = Gdk.WindowTypeHint.Dialog;
            WindowPosition  = Gtk.WindowPosition.Center;
            KeepAbove       = true;
            Stick();

            Title    = Catalog.GetString("Themes");
            IconName = Gtk.Stock.Preferences;

            AddButton(Stock.Close, ResponseType.Close);

            labelTreeView.Model              = labelTreeStore;
            labelTreeView.HeadersVisible     = false;
            labelTreeView.Selection.Changed += OnLabelSelectionChanged;
            labelTreeView.AppendColumn(Catalog.GetString("Theme"), new CellRendererText(), "text", 0);

            ScrolledWindow win = new ScrolledWindow();

            win.Add(labelTreeView);
            win.SetSizeRequest(200, 300);
            win.Show();
            VBox.PackEnd(win);
            VBox.ShowAll();

            UpdateThemeList();
        }
		public ClockThemeSelector (ClockDockItem dockItem)
		{
			DockItem = dockItem;
			
			SkipTaskbarHint = true;
			TypeHint = Gdk.WindowTypeHint.Dialog;
			WindowPosition = Gtk.WindowPosition.Center;
			KeepAbove = true;
			Stick ();
			
			Title = Catalog.GetString ("Themes");
			IconName = Gtk.Stock.Preferences;
			
			AddButton (Stock.Close, ResponseType.Close);
			
			labelTreeView.Model = labelTreeStore;
			labelTreeView.HeadersVisible = false;
			labelTreeView.Selection.Changed += OnLabelSelectionChanged;
			labelTreeView.AppendColumn (Catalog.GetString ("Theme"), new CellRendererText (), "text", 0);
			
			ScrolledWindow win = new ScrolledWindow ();
			win.Add (labelTreeView);
			win.SetSizeRequest (200, 300);
			win.Show ();
			VBox.PackEnd (win);
			VBox.ShowAll ();

			UpdateThemeList ();
		}
		public ClockItemProvider ()
		{
			clock = new ClockDockItem ();
			
			Items = clock.AsSingle<AbstractDockItem> ();
		}
Exemple #4
0
        public ClockItemProvider()
        {
            clock = new ClockDockItem();

            Items = clock.AsSingle <AbstractDockItem> ();
        }