Пример #1
0
void load_tray_appindicator()
{
  if (!hime_status_tray)
    return;
  if (!is_exist_tray_appindicator()) {
    init_tray_appindicator();
    return;
  }

  app_indicator_set_label(tray_appindicator, tray_appindicator_label_create(), " / ");
  tray_appindicator_update_icon();
}
Пример #2
0
gboolean delayed_start_cb(gpointer data)
{
#if TRAY_ENABLED
  if (hime_status_tray) {
    if (hime_tray_display == HIME_TRAY_DISPLAY_SINGLE)
      init_tray();
    else if (hime_tray_display == HIME_TRAY_DISPLAY_DOUBLE)
      init_tray_double();
#if TRAY_UNITY
    else if (hime_tray_display == HIME_TRAY_DISPLAY_APPINDICATOR)
    init_tray_appindicator();
#endif
  }
#endif

  dbg("after init_tray\n");

  return FALSE;
}