formatting

This commit is contained in:
piotr
2024-02-01 04:14:42 +01:00
parent 6da6787272
commit b0dc1404e7
2 changed files with 1 additions and 1 deletions

View File

@@ -571,6 +571,7 @@ func main() {
outerVBox.PackStart(powerBarWrapper, false, false, 0)
powerButtonsWrapper, _ := gtk.BoxNew(gtk.ORIENTATION_HORIZONTAL, 0)
powerBarWrapper.PackStart(powerButtonsWrapper, true, false, 12)
if *pbLock != "" {
btn := powerButton("/usr/share/nwg-drawer/img/lock.svg", *pbLock)
powerButtonsWrapper.PackStart(btn, true, false, 0)

View File

@@ -294,7 +294,6 @@ func powerButton(iconPath, command string) *gtk.Button {
var pixbuf *gdk.Pixbuf
var img *gtk.Image
var err error
//pixbuf, err = createPixbuf(iconPath, *iconSize)
pixbuf, err = gdk.PixbufNewFromFileAtSize(iconPath, *pbSize, *pbSize)
if err != nil {
pixbuf, _ = createPixbuf("unknown", *pbSize)