Back to index

libappindicator  12.10.0
Functions
app-indicator-enum-types.c File Reference
#include "app-indicator-enum-types.h"
#include "app-indicator.h"

Go to the source code of this file.

Functions

GType app_indicator_category_get_type (void)
 app_indicator_category_get_type:
GType app_indicator_status_get_type (void)
 app_indicator_status_get_type:

Function Documentation

app_indicator_category_get_type:

Builds a GLib type for the AppIndicatorCategory enumeration.

Return value: A unique #GType for the AppIndicatorCategory enum.

Definition at line 43 of file app-indicator-enum-types.c.

{
       static GType etype = 0;
       if (G_UNLIKELY(etype == 0)) {
              static const GEnumValue values[] = {
                     { APP_INDICATOR_CATEGORY_APPLICATION_STATUS,  "APP_INDICATOR_CATEGORY_APPLICATION_STATUS", "ApplicationStatus" },
                     { APP_INDICATOR_CATEGORY_COMMUNICATIONS,  "APP_INDICATOR_CATEGORY_COMMUNICATIONS", "Communications" },
                     { APP_INDICATOR_CATEGORY_SYSTEM_SERVICES,  "APP_INDICATOR_CATEGORY_SYSTEM_SERVICES", "SystemServices" },
                     { APP_INDICATOR_CATEGORY_HARDWARE,  "APP_INDICATOR_CATEGORY_HARDWARE", "Hardware" },
                     { APP_INDICATOR_CATEGORY_OTHER,  "APP_INDICATOR_CATEGORY_OTHER", "Other" },
                     { 0, NULL, NULL}
              };
              
              etype = g_enum_register_static (g_intern_static_string("AppIndicatorCategory"), values);
       }

       return etype;
}

app_indicator_status_get_type:

Builds a GLib type for the AppIndicatorStatus enumeration.

Return value: A unique #GType for the AppIndicatorStatus enum.

Definition at line 70 of file app-indicator-enum-types.c.

{
       static GType etype = 0;
       if (G_UNLIKELY(etype == 0)) {
              static const GEnumValue values[] = {
                     { APP_INDICATOR_STATUS_PASSIVE,  "APP_INDICATOR_STATUS_PASSIVE", "Passive" },
                     { APP_INDICATOR_STATUS_ACTIVE,  "APP_INDICATOR_STATUS_ACTIVE", "Active" },
                     { APP_INDICATOR_STATUS_ATTENTION,  "APP_INDICATOR_STATUS_ATTENTION", "NeedsAttention" },
                     { 0, NULL, NULL}
              };
              
              etype = g_enum_register_static (g_intern_static_string("AppIndicatorStatus"), values);
       }

       return etype;
}