~ubuntu-branches/ubuntu/oneiric/gnome-panel/oneiric

« back to all changes in this revision

Viewing changes to gnome-panel/libpanel-util/panel-util-types.c

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2011-05-30 11:04:49 UTC
  • mfrom: (1.3.4 upstream)
  • mto: This revision was merged to the branch mainline in revision 204.
  • Revision ID: james.westby@ubuntu.com-20110530110449-ut1tc5t61rpvf9e3
Tags: upstream-3.0.2
ImportĀ upstreamĀ versionĀ 3.0.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
 
 
3
 
 
4
#include <glib-object.h>
 
5
#include "panel-util-types.h"
 
6
 
 
7
 
 
8
/* enumerations from "panel-session-manager.h" */
 
9
#include "panel-session-manager.h"
 
10
static const GEnumValue _panel_session_manager_logout_type_values[] = {
 
11
  { PANEL_SESSION_MANAGER_LOGOUT_MODE_NORMAL, "PANEL_SESSION_MANAGER_LOGOUT_MODE_NORMAL", "normal" },
 
12
  { PANEL_SESSION_MANAGER_LOGOUT_MODE_NO_CONFIRMATION, "PANEL_SESSION_MANAGER_LOGOUT_MODE_NO_CONFIRMATION", "no-confirmation" },
 
13
  { PANEL_SESSION_MANAGER_LOGOUT_MODE_FORCE, "PANEL_SESSION_MANAGER_LOGOUT_MODE_FORCE", "force" },
 
14
  { 0, NULL, NULL }
 
15
};
 
16
 
 
17
GType
 
18
panel_session_manager_logout_type_get_type (void)
 
19
{
 
20
  static GType type = 0;
 
21
 
 
22
  if (!type)
 
23
    type = g_enum_register_static ("PanelSessionManagerLogoutType", _panel_session_manager_logout_type_values);
 
24
 
 
25
  return type;
 
26
}
 
27
 
 
28
static const GEnumValue _panel_session_manager_presence_type_values[] = {
 
29
  { PANEL_SESSION_MANAGER_PRESENCE_AVAILABLE, "PANEL_SESSION_MANAGER_PRESENCE_AVAILABLE", "available" },
 
30
  { PANEL_SESSION_MANAGER_PRESENCE_INVISIBLE, "PANEL_SESSION_MANAGER_PRESENCE_INVISIBLE", "invisible" },
 
31
  { PANEL_SESSION_MANAGER_PRESENCE_BUSY, "PANEL_SESSION_MANAGER_PRESENCE_BUSY", "busy" },
 
32
  { PANEL_SESSION_MANAGER_PRESENCE_IDLE, "PANEL_SESSION_MANAGER_PRESENCE_IDLE", "idle" },
 
33
  { 0, NULL, NULL }
 
34
};
 
35
 
 
36
GType
 
37
panel_session_manager_presence_type_get_type (void)
 
38
{
 
39
  static GType type = 0;
 
40
 
 
41
  if (!type)
 
42
    type = g_enum_register_static ("PanelSessionManagerPresenceType", _panel_session_manager_presence_type_values);
 
43
 
 
44
  return type;
 
45
}
 
46
 
 
47
 
 
48
 
 
49