changed copyright dates to 2012
[psensor.git] / src / ui_appindicator.c
index c2bbada..dce718f 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2010-2011 jeanfi@gmail.com
+ * Copyright (C) 2010-2012 jeanfi@gmail.com
  *
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of the GNU General Public License as
@@ -99,32 +99,32 @@ static const char *menu_desc =
 "</ui>";
 
 static GtkActionEntry entries[] = {
-  { "PsensorMenuAction", NULL, "_Psensor" }, /* name, stock id, label */
-
-  { "ShowAction", NULL,        /* name, stock id */
-    "_Show", NULL, /* label, accelerator */
-    "Show",                    /* tooltip */
-    G_CALLBACK(cb_menu_show) },
-
-  { "PreferencesAction", GTK_STOCK_PREFERENCES,     /* name, stock id */
-    "_Preferences", NULL,                           /* label, accelerator */
-    "Preferences",                                  /* tooltip */
-    G_CALLBACK(cb_menu_preferences) },
-
-  { "SensorPreferencesAction", GTK_STOCK_PREFERENCES,
-    "S_ensor Preferences",
-    NULL,
-    "SensorPreferences",
-    G_CALLBACK(cb_sensor_preferences) },
-
-  { "AboutAction", NULL,
-    "_About",
-    NULL,
-    "About",
-    G_CALLBACK(cb_about) },
-
-  { "QuitAction",
-    GTK_STOCK_QUIT, "_Quit", NULL, "Quit", G_CALLBACK(cb_menu_quit) }
+       { "PsensorMenuAction", NULL, "_Psensor" },
+
+       { "ShowAction", NULL,
+         "_Show", NULL,
+         "Show",
+         G_CALLBACK(cb_menu_show) },
+
+       { "PreferencesAction", GTK_STOCK_PREFERENCES,
+         "_Preferences", NULL,
+         "Preferences",
+         G_CALLBACK(cb_menu_preferences) },
+
+       { "SensorPreferencesAction", GTK_STOCK_PREFERENCES,
+         "S_ensor Preferences",
+         NULL,
+         "SensorPreferences",
+         G_CALLBACK(cb_sensor_preferences) },
+
+       { "AboutAction", NULL,
+         "_About",
+         NULL,
+         "About",
+         G_CALLBACK(cb_about) },
+
+       { "QuitAction",
+         GTK_STOCK_QUIT, "_Quit", NULL, "Quit", G_CALLBACK(cb_menu_quit) }
 };
 static guint n_entries = G_N_ELEMENTS(entries);
 
@@ -241,15 +241,15 @@ void ui_appindicator_init(struct ui_psensor *ui)
        main_window = ui->main_window;
 
        indicator = app_indicator_new
-               (ICON,
-                ATTENTION_ICON,
+               ("psensor",
+                ICON,
                 APP_INDICATOR_CATEGORY_APPLICATION_STATUS);
 
        APP_INDICATOR_GET_CLASS(indicator)->fallback = unity_fallback;
        APP_INDICATOR_GET_CLASS(indicator)->unfallback = unity_unfallback;
 
        app_indicator_set_status(indicator, APP_INDICATOR_STATUS_ACTIVE);
-       app_indicator_set_attention_icon(indicator, "psensor_hot");
+       app_indicator_set_attention_icon(indicator, ATTENTION_ICON);
 
        menu = get_menu(ui);
        app_indicator_set_menu(indicator, GTK_MENU(menu));