conficons

package
v0.0.0-...-0caaa62 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 1, 2017 License: GPL-3.0-or-later Imports: 13 Imported by: 0

Documentation

Overview

Package conficons provides an icons list and configuration widget.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GuiIcons

type GuiIcons struct {
	gtk.Paned
	// contains filtered or unexported fields
}

GuiIcons defines Icons configuration widget for currently actived cairo-dock Icons.

func New

func New(data cftype.Source, log cdtype.Logger, switcher *pageswitch.Switcher, btn btnaction.Tune) *GuiIcons

New creates a GuiIcons widget to edit cairo-dock icons config.

func (*GuiIcons) Clear

func (widget *GuiIcons) Clear() string

Clear clears the widget data.

func (*GuiIcons) Load

func (widget *GuiIcons) Load()

Load loads the list of icons in the iconsList.

func (*GuiIcons) OnSelect

func (widget *GuiIcons) OnSelect(icon datatype.Iconer, e error)

OnSelect reacts when a row is selected. Creates a new config for the icon.

func (*GuiIcons) Save

func (widget *GuiIcons) Save()

Save saves the current page configuration

func (*GuiIcons) Select

func (widget *GuiIcons) Select(conf string) bool

Select sets the selected icon based on its config file.

func (*GuiIcons) ShowWelcome

func (widget *GuiIcons) ShowWelcome(setBtn bool)

ShowWelcome shows the welcome placeholder widget if nothing is displayed.

type List

type List struct {
	gtk.ScrolledWindow // Main widget is the container. The ScrolledWindow will handle list scrollbars.
	// contains filtered or unexported fields
}

List defines a dock icons management widget.

func NewList

func NewList(control ListControl, log cdtype.Logger) *List

NewList creates a dock icons management widget.

func (*List) Clear

func (widget *List) Clear()

Clear clears the widget data.

func (*List) Load

func (widget *List) Load(icons *datatype.ListIcon)

Load loads icons list in the widget.

func (*List) Select

func (widget *List) Select(conf string) bool

Select sets the selected icon based on its config file.

func (*List) SelectedConf

func (widget *List) SelectedConf() string

SelectedConf returns the path to icon config file for the selected row.

func (*List) SelectedIcon

func (widget *List) SelectedIcon() (datatype.Iconer, error)

SelectedIcon returns the iconer matching the selected row.

type ListControl

type ListControl interface {
	OnSelect(datatype.Iconer, error)
}

ListControl forwards events to other widgets.

Directories

Path Synopsis
Package desktopclass extends the launcher builder with desktop class informations.
Package desktopclass extends the launcher builder with desktop class informations.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL