Skip to content

Commit

Permalink
Battery support on netbooks is active if exist patch to get informati…
Browse files Browse the repository at this point in the history
…ons from info file.
  • Loading branch information
eloaders committed Jan 19, 2012
1 parent dfbb244 commit 5ec3609
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 15 deletions.
Binary file modified src/i-nex/.gambas/BATTERY
Binary file not shown.
Binary file modified src/i-nex/.gambas/FINFOSYS
Binary file not shown.
2 changes: 1 addition & 1 deletion src/i-nex/.lang/.pot
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ msgid "SWAP memory used:"
msgstr ""

#: Finfosys.form:986
msgid "Internet"
msgid "Network"
msgstr ""

#: Finfosys.form:991
Expand Down
2 changes: 1 addition & 1 deletion src/i-nex/.lang/Finfosys.pot
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ msgid "SWAP memory used:"
msgstr ""

#: Finfosys.form:986
msgid "Internet"
msgid "Network"
msgstr ""

#: Finfosys.form:991
Expand Down
4 changes: 2 additions & 2 deletions src/i-nex/.settings
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ SearchComment=False
SearchString=True

[OpenFile]
Active=1
File[1]=".src/Finfosys.form"
Active=2
File[2]=".src/Finfosys.class:10.30"
File[2]=".src/Finfosys.class:457.24"
File[3]=".src/Global.class:92.31"
File[4]=".src/About.form"
File[5]=".src/About.class:29.47"
Expand Down
6 changes: 3 additions & 3 deletions src/i-nex/.src/Finfosys.class
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ Public Sub Form_Open()
If gnome_screenshot = True Then
Button2.Visible = True
Endif
Object.Call(battery, "_init")
TextArea28.Visible = False
TextLabel21.Visible = False
TabStrip1[9].Visible = False
'Procesor
Shell "ls /sys/devices/system/cpu/ | grep -v save | sed -n '1p'" Wait To cpuz0
Shell "ls /sys/devices/system/cpu/ | grep -v save | sed -n '2p'" Wait To cpuz1
Expand Down Expand Up @@ -466,8 +466,8 @@ Public Sub Button8_Click()

End

Public Sub TabStrip1_Click()
Public Sub Button10_Click()


Object.Call(battery, "_init")

End
13 changes: 5 additions & 8 deletions src/i-nex/.src/battery.module
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
' Gambas module file

Public battery_exist As Boolean = Exist("/proc/acpi/battery")
Public true_false As Boolean = Setting.Settings["battery/active"]
Public addres_battery As String
Public battery_exist As Boolean = Exist("/proc/acpi/battery/BAT1/info")
Public addres_battery As String = "/proc/acpi/battery/BAT1/info"
Public Present As String
Public Design_capacity As String
Public last_full_capacity As String
Expand All @@ -20,14 +19,12 @@ Public OEM_info As String


Public Sub _init()
If true_false = True Then
addres_battery = Setting.Settings["battery/patch"]
If battery_exist = True Then
_get_inf()
_replace_n()
Object.Call(Finfosys, "battery_info")
Else
addres_battery = "/proc/acpi/battery/BAT1/info"
_get_inf()
_replace_n()
Finfosys.TabStrip1[9].Visible = False
Endif
End

Expand Down

0 comments on commit 5ec3609

Please sign in to comment.