~ubuntu-branches/ubuntu/vivid/xfce4-session/vivid-proposed

« back to all changes in this revision

Viewing changes to xfce4-session/xfsm-consolekit.h

  • Committer: Package Import Robot
  • Author(s): Lionel Le Folgoc
  • Date: 2012-05-18 20:21:52 UTC
  • mfrom: (4.1.7 experimental)
  • Revision ID: package-import@ubuntu.com-20120518202152-7bm9pla0j3ccfsnk
Tags: 4.10.0-1ubuntu1
* Merge from Debian experimental, remaining Ubuntu changes:
  - debian/control: build-depends on libgnome-keyring-dev to enable GNOME
    Keyring services support.
  - debian/rules: pass --enable-libgnome-keyring to dh_auto_configure.
  - debian/patches:
    + xubuntu_ignore-gdm-lang.patch: do not set $LANG to $GDM_LANG, there's
      already an xsession script to do that, and $GDM_LANG might not contain
      a valid locale code.

* debian/patches:
  - xubuntu_set-xdg-current-desktop.patch: added. Taken from xfce4-utils,
    export XDG_CURRENT_DESKTOP=XFCE, can be useful with alacarte and
    gnome-menus. lp #927172

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*-
 
2
 * Copyright (c) 2003-2006 Benedikt Meurer <benny@xfce.org>
 
3
 * Copyright (c) 2010      Ali Abdallah    <aliov@xfce.org>
 
4
 * Copyright (c) 2011      Nick Schermer <nick@xfce.org>
 
5
 * All rights reserved.
 
6
 *
 
7
 * This program is free software; you can redistribute it and/or modify
 
8
 * it under the terms of the GNU General Public License as published by
 
9
 * the Free Software Foundation; either version 2, or (at your option)
 
10
 * any later version.
 
11
 *
 
12
 * This program is distributed in the hope that it will be useful,
 
13
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
14
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
15
 * GNU General Public License for more details.
 
16
 *
 
17
 * You should have received a copy of the GNU General Public License
 
18
 * along with this program; if not, write to the Free Software
 
19
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 
20
 * MA 02110-1301 USA.
 
21
 */
 
22
 
 
23
#ifndef __XFSM_CONSOLEKIT_HELPER_H__
 
24
#define __XFSM_CONSOLEKIT_HELPER_H__
 
25
 
 
26
typedef struct _XfsmConsolekitClass XfsmConsolekitClass;
 
27
typedef struct _XfsmConsolekit      XfsmConsolekit;
 
28
 
 
29
#define XFSM_TYPE_CONSOLEKIT            (xfsm_consolekit_get_type ())
 
30
#define XFSM_CONSOLEKIT(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), XFSM_TYPE_CONSOLEKIT, XfsmConsolekit))
 
31
#define XFSM_CONSOLEKIT_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), XFSM_TYPE_CONSOLEKIT, XfsmConsolekitClass))
 
32
#define XFSM_IS_CONSOLEKIT(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), XFSM_TYPE_CONSOLEKIT))
 
33
#define XFSM_IS_CONSOLEKIT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), XFSM_TYPE_CONSOLEKIT))
 
34
#define XFSM_CONSOLEKIT_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), XFSM_TYPE_CONSOLEKIT, XfsmConsolekitClass))
 
35
 
 
36
GType           xfsm_consolekit_get_type     (void) G_GNUC_CONST;
 
37
 
 
38
XfsmConsolekit *xfsm_consolekit_get          (void);
 
39
 
 
40
gboolean        xfsm_consolekit_try_restart  (XfsmConsolekit  *consolekit,
 
41
                                              GError         **error);
 
42
 
 
43
gboolean        xfsm_consolekit_try_shutdown (XfsmConsolekit  *consolekit,
 
44
                                              GError         **error);
 
45
 
 
46
gboolean        xfsm_consolekit_can_restart  (XfsmConsolekit  *consolekit,
 
47
                                              gboolean        *can_restart,
 
48
                                              GError         **error);
 
49
 
 
50
gboolean        xfsm_consolekit_can_shutdown (XfsmConsolekit  *consolekit,
 
51
                                              gboolean        *can_shutdown,
 
52
                                              GError         **error);
 
53
 
 
54
#endif /* !__XFSM_CONSOLEKIT_HELPER_H__ */