aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNick Dedekind <nicholas.dedekind@gmail.com>2013-10-30 09:51:05 -0700
committerNick Dedekind <nicholas.dedekind@gmail.com>2013-10-30 09:51:05 -0700
commitcd42d9e312abcc41b45e87481a63033c5fddb828 (patch)
treec99d2644d74f85c9035b273ac216d0746270faff /src
parent833e7fc23761d9c0a2ae833063d1d23dc27b7e62 (diff)
downloadayatana-indicator-power-cd42d9e312abcc41b45e87481a63033c5fddb828.tar.gz
ayatana-indicator-power-cd42d9e312abcc41b45e87481a63033c5fddb828.tar.bz2
ayatana-indicator-power-cd42d9e312abcc41b45e87481a63033c5fddb828.zip
Use NULL for empty string
Diffstat (limited to 'src')
-rw-r--r--src/service.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/service.c b/src/service.c
index 327d1c3..a0c7fd1 100644
--- a/src/service.c
+++ b/src/service.c
@@ -459,7 +459,7 @@ create_brightness_menuitem (IndicatorPowerService * self)
get_brightness_range (self, &lo, &hi);
- item = g_menu_item_new ("", "indicator.brightness");
+ item = g_menu_item_new (NULL, "indicator.brightness");
g_menu_item_set_attribute (item, "x-canonical-type", "s", "com.canonical.unity.slider");
g_menu_item_set_attribute (item, "min-value", "d", brightness_to_percentage (self, lo));
g_menu_item_set_attribute (item, "max-value", "d", brightness_to_percentage (self, hi));