Reduced usage of Gee
[gregoa/zavai.git] / src / app_power.vala
index 74415d221a04262e264a386fc9f4f8bcf013ff68..f2b4da8f4cb44eb982db98e08a712a74e24e8d41 100644 (file)
@@ -598,7 +598,7 @@ public class TogglePowerMenu : Gtk.Button
 
 Power power;
 PowerMenu power_menu;
-Gee.ArrayList<BatteryIcon> battery_icons;
+List<BatteryIcon> battery_icons;
 Backlight backlight;
 BrightnessAdjustment brightness;
 //TogglePowerMenu tpm;
@@ -610,7 +610,7 @@ public void init()
        brightness = new BrightnessAdjustment();
        
        try {
-               battery_icons = new Gee.ArrayList<BatteryIcon>();
+               battery_icons = new List<BatteryIcon>();
                // Enumerate batteries
                var c = new Dkp.Client();
                unowned GLib.PtrArray devs = c.enumerate_devices();
@@ -623,7 +623,7 @@ public void init()
                        if (!dev.is_rechargeable) continue;
                        var bi = new BatteryIcon(dev);
                        bi.set_visible(true);
-                       battery_icons.add(bi);
+                       battery_icons.append(bi);
                }
 
                power_menu = new PowerMenu();