Skip to content

Commit

Permalink
Fixed warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
rilian-la-te committed Apr 3, 2017
1 parent 7e3ddaa commit c429a20
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 18 deletions.
14 changes: 7 additions & 7 deletions applets/batt/battery.vala
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@ private class DeviceData
[DBus (name = "org.kde.StatusNotifierItem")]
public class BatteryIconExporter : ItemExporter
{
private static const string UPOWER_PATH = "/org/freedesktop/UPower";
internal static const string UPOWER_NAME = "org.freedesktop.UPower";
private static const string NOTIFY = "use-notifications";
private static const string PERCENT = "show-percentage";
private static const string TIME = "show-time-remaining";
private static const string COMMAND = "pm-command";
private static const string PATH = "display-device-path";
private const string UPOWER_PATH = "/org/freedesktop/UPower";
internal const string UPOWER_NAME = "org.freedesktop.UPower";
private const string NOTIFY = "use-notifications";
private const string PERCENT = "show-percentage";
private const string TIME = "show-time-remaining";
private const string COMMAND = "pm-command";
private const string PATH = "display-device-path";
public bool use_notifications {get; internal set;}
public bool show_percentage {get; internal set;}
public bool show_time_remaining {get; internal set;}
Expand Down
2 changes: 1 addition & 1 deletion applets/gtop/gtop.vala
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public static int main(string[] args)
[DBus (name = "org.kde.StatusNotifierItem")]
public class NetloadIconExporter : ItemExporter
{
private static const string IFACE = "network-interface";
private const string IFACE = "network-interface";
public string network_interface {get; internal set;}
public bool reload {get; internal set;}
private uint64 bytes_in_old;
Expand Down
6 changes: 3 additions & 3 deletions applets/volume/volume.vala
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ public static int main(string[] args)
[DBus (name = "org.kde.StatusNotifierItem")]
public class VolumeIconExporter : ItemExporter
{
private static const string KEY_CHANNEL = "channel-id";
private static const string KEY_CARD_ID = "card-id";
private static const string KEY_MIXER = "mixer";
private const string KEY_CHANNEL = "channel-id";
private const string KEY_CARD_ID = "card-id";
private const string KEY_MIXER = "mixer";
bool asound_find_element(string ename)
{
for (
Expand Down
8 changes: 4 additions & 4 deletions applets/weather/weather.vala
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ namespace Weather
[DBus (name = "org.kde.StatusNotifierItem")]
public class WeatherIconExporter : ItemExporter
{
internal static const string LOCATIONS = "locations";
internal static const string CURRENT_LOC = "current-location";
internal static const string UPDATE = "update-interval";
internal static const string SHOW_LABEL = "show-temperature";
internal const string LOCATIONS = "locations";
internal const string CURRENT_LOC = "current-location";
internal const string UPDATE = "update-interval";
internal const string SHOW_LABEL = "show-temperature";
private uint update_source;
internal GWeather.Location[] locations {get; set;}
internal bool show_temperature {get; set;}
Expand Down
6 changes: 3 additions & 3 deletions lib/application.vala
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ namespace StatusNotifier
{
public class App: GLib.Application
{
protected static const OptionEntry[] options =
protected const OptionEntry[] options =
{
{ "version", 'v', 0, OptionArg.NONE, null, N_("Print version and exit"), null },
{ null }
};
[CCode (has_target = true)]
public delegate Gtk.Dialog CreatePreferencesDialog();
private static const string NAME = "options";
private static const string PATH = "/org/vala-panel/";
private const string NAME = "options";
private const string PATH = "/org/vala-panel/";
public ItemExporter icon {get; construct;}
public unowned CreatePreferencesDialog preferences {get; set;}
public Gtk.AboutDialog? about {get; private set;}
Expand Down

0 comments on commit c429a20

Please sign in to comment.