Back to index

libappindicator  12.10.0
Defines | Functions
app-indicator-enum-types.h File Reference
#include <glib-object.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define APP_INDICATOR_TYPE_INDICATOR_CATEGORY   (app_indicator_category_get_type())
#define APP_INDICATOR_TYPE_INDICATOR_STATUS   (app_indicator_status_get_type())

Functions

G_BEGIN_DECLS GType app_indicator_category_get_type (void) G_GNUC_CONST
 app_indicator_category_get_type:
GType app_indicator_status_get_type (void) G_GNUC_CONST
 app_indicator_status_get_type:

Define Documentation

Definition at line 41 of file app-indicator-enum-types.h.

Definition at line 44 of file app-indicator-enum-types.h.


Function Documentation

G_BEGIN_DECLS GType app_indicator_category_get_type ( void  )

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;
}