Back to index

libappindicator  12.10.0
app-indicator-enum-types.c
Go to the documentation of this file.
00001 
00002 /* Generated data (by glib-mkenums) */
00003 
00004 /*
00005 An object to represent the application as an application indicator
00006 in the system panel.
00007 
00008 Copyright 2009 Canonical Ltd.
00009 
00010 Authors:
00011     Ted Gould <ted@canonical.com>
00012 
00013 This program is free software: you can redistribute it and/or modify it 
00014 under the terms of either or both of the following licenses:
00015 
00016 1) the GNU Lesser General Public License version 3, as published by the 
00017    Free Software Foundation; and/or
00018 2) the GNU Lesser General Public License version 2.1, as published by 
00019    the Free Software Foundation.
00020 
00021 This program is distributed in the hope that it will be useful, but 
00022 WITHOUT ANY WARRANTY; without even the implied warranties of 
00023 MERCHANTABILITY, SATISFACTORY QUALITY or FITNESS FOR A PARTICULAR 
00024 PURPOSE.  See the applicable version of the GNU Lesser General Public 
00025 License for more details.
00026 
00027 You should have received a copy of both the GNU Lesser General Public 
00028 License version 3 and version 2.1 along with this program.  If not, see 
00029 <http://www.gnu.org/licenses/>
00030 */
00031 
00032 #include "app-indicator-enum-types.h"
00033 
00034 #include "app-indicator.h"
00042 GType
00043 app_indicator_category_get_type (void)
00044 {
00045        static GType etype = 0;
00046        if (G_UNLIKELY(etype == 0)) {
00047               static const GEnumValue values[] = {
00048                      { APP_INDICATOR_CATEGORY_APPLICATION_STATUS,  "APP_INDICATOR_CATEGORY_APPLICATION_STATUS", "ApplicationStatus" },
00049                      { APP_INDICATOR_CATEGORY_COMMUNICATIONS,  "APP_INDICATOR_CATEGORY_COMMUNICATIONS", "Communications" },
00050                      { APP_INDICATOR_CATEGORY_SYSTEM_SERVICES,  "APP_INDICATOR_CATEGORY_SYSTEM_SERVICES", "SystemServices" },
00051                      { APP_INDICATOR_CATEGORY_HARDWARE,  "APP_INDICATOR_CATEGORY_HARDWARE", "Hardware" },
00052                      { APP_INDICATOR_CATEGORY_OTHER,  "APP_INDICATOR_CATEGORY_OTHER", "Other" },
00053                      { 0, NULL, NULL}
00054               };
00055               
00056               etype = g_enum_register_static (g_intern_static_string("AppIndicatorCategory"), values);
00057        }
00058 
00059        return etype;
00060 }
00061 
00069 GType
00070 app_indicator_status_get_type (void)
00071 {
00072        static GType etype = 0;
00073        if (G_UNLIKELY(etype == 0)) {
00074               static const GEnumValue values[] = {
00075                      { APP_INDICATOR_STATUS_PASSIVE,  "APP_INDICATOR_STATUS_PASSIVE", "Passive" },
00076                      { APP_INDICATOR_STATUS_ACTIVE,  "APP_INDICATOR_STATUS_ACTIVE", "Active" },
00077                      { APP_INDICATOR_STATUS_ATTENTION,  "APP_INDICATOR_STATUS_ATTENTION", "NeedsAttention" },
00078                      { 0, NULL, NULL}
00079               };
00080               
00081               etype = g_enum_register_static (g_intern_static_string("AppIndicatorStatus"), values);
00082        }
00083 
00084        return etype;
00085 }
00086 
00087 
00088 /* Generated data ends here */
00089