mirror of
https://github.com/clockworkpi/LauncherGoDev.git
synced 2026-03-19 02:12:46 +01:00
next is keyboard bugs
This commit is contained in:
@@ -2,7 +2,7 @@ package DBUS
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"strconv"
|
||||
//"strconv"
|
||||
"github.com/godbus/dbus"
|
||||
)
|
||||
|
||||
@@ -127,8 +127,8 @@ func (self *DBus) check_for_wireless(iwconfig string, wireless_ip string) bool
|
||||
if strength == 0 {
|
||||
return false
|
||||
}
|
||||
strength_str := strconv.Itoa(strength)
|
||||
self.Daemon.Get( self.Daemon.Method("FormatSignalForPrinting",strength_str), &strength_str)
|
||||
strength_str := ""
|
||||
self.Daemon.Get( self.Daemon.Method("FormatSignalForPrinting",strength), &strength_str)
|
||||
|
||||
return true
|
||||
}
|
||||
@@ -174,5 +174,5 @@ var DBusHandler *DBus //global
|
||||
func init() {
|
||||
DBusHandler = NewDBus()
|
||||
DBusHandler.Init()
|
||||
fmt.Println("dbus inited")
|
||||
|
||||
}
|
||||
|
||||
@@ -61,7 +61,7 @@ func (self *InfoPageListItem) Draw() {
|
||||
x,_ = self.Labels["Small"].Coord()
|
||||
w,h = self.Labels["Small"].Size()
|
||||
|
||||
self.Labels["Small"].NewCoord( self.Width - w + 5 , self.PosY + (self.Height - h)/2 )
|
||||
self.Labels["Small"].NewCoord( self.Width - w - 5 , self.PosY + (self.Height - h)/2 )
|
||||
self.Labels["Small"].Draw()
|
||||
|
||||
}
|
||||
|
||||
@@ -101,7 +101,8 @@ func (self *Textarea) AppendAndBlitText(alphabet string) {
|
||||
|
||||
func (self *Textarea) BuildBlitText() {
|
||||
blit_rows := make([][]string,0)
|
||||
|
||||
blit_rows = append(blit_rows,[]string{})
|
||||
|
||||
w := 0
|
||||
// xmargin := 5
|
||||
endmargin :=15
|
||||
@@ -114,11 +115,7 @@ func (self *Textarea) BuildBlitText() {
|
||||
t_width := surface.GetWidth(t)
|
||||
w+=t_width
|
||||
|
||||
if linenumber < len(blit_rows) {
|
||||
blit_rows[linenumber] = append(blit_rows[linenumber],v)
|
||||
}else {
|
||||
blit_rows = append(blit_rows,[]string{v})
|
||||
}
|
||||
blit_rows[linenumber] = append(blit_rows[linenumber],v)
|
||||
|
||||
if i == self.TextIndex - 1 {
|
||||
cursor_row = linenumber
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package sysgo
|
||||
|
||||
var (
|
||||
CurKeySet = "GameShell"
|
||||
CurKeySet = "PC"
|
||||
DontLeave = false
|
||||
BackLight = "/proc/driver/backlight"
|
||||
Battery = "/sys/class/power_supply/axp20x-battery/uevent"
|
||||
|
||||
@@ -2,7 +2,7 @@ package misc
|
||||
|
||||
import (
|
||||
"bufio"
|
||||
"fmt"
|
||||
//"fmt"
|
||||
"github.com/cuu/LauncherGo/sysgo/UI"
|
||||
"log"
|
||||
"os"
|
||||
@@ -119,7 +119,6 @@ func LoadEncryptionMethods(wired bool) []*CurType {
|
||||
}
|
||||
|
||||
enctypes, _ := UI.ReadLines(wpath_encryption + active_fname)
|
||||
fmt.Println(enctypes)
|
||||
|
||||
var encryptionTypes []*CurType
|
||||
|
||||
|
||||
Reference in New Issue
Block a user