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

« back to all changes in this revision

Viewing changes to gnome-panel/panel-lockdown.h

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher, Sebastien Bacher, Jeremy Bicha
  • Date: 2011-05-30 11:04:49 UTC
  • mfrom: (1.13.10 upstream) (2.2.5 experimental)
  • Revision ID: james.westby@ubuntu.com-20110530110449-hinl17kxkcefjw6x
Tags: 1:3.0.2-0ubuntu1
[ Sebastien Bacher ]
* New upstream version
* debian/control.in:
  - the new libgweather version is in oneiric, use it
  - drop the python and python-gconf depends, 
    they were added for gnome-panel-add which is still using gconf and buggy
* debian/gnome-panel-data.install:
  - don't install the apport hook, it's only getting gconf datas which 
    doesn't work since gnome-panel uses gsettings
* debian/patches/90_build_fixes.patch:
  - restore build fix from git not applied in the new serie
* debian/patches/01_panel_submenus.patch:
  - don't take that Debian diff, the .menus use the upstream naming in Ubuntu
* debian/patches/06_no_resize_grip.patch:
  - dropped, the issue is fixed in the new version
* debian/patches/50_fix-potfiles.patch:
  - dropped, the issue is fixed in the new version
* debian/watch:
  - track unstable series as well

Drop those delta, since gnome-panel is not the default Ubuntu session now we
can go back to an experience closer to the upstream one: 
* debian/control.in:
  - drop the indicators recommends, unity-2d is the ubuntu fallback session
    so we can get back to use an upstream config for gnome-panel and reduce
    the delta we carry
* debian/patches/04_default_panel_config.patch:
  - don't modify the upstream layout
* debian/patches/05_no_session_delay.patch:
  - no need to tweak the upstream session to optimize it
* debian/patches/16_compiz_workspace_switcher.patch:
  - go back to the upstream switcher behaviour    
* debian/patches/25_dynamic_fusa_detection.patch:
  - not needed since we use the upstream layout, could be ported if someone
    is wanting to do the work though
* debian/patches/30_disable-initial-animation.patch, debian/rules:
  - drop the --disable-initial-animation, that was some login optimization
    but since it's not the default desktop you should go back to the 
    upstream behaviour

[ Jeremy Bicha ]   
* New upstream version
* Merge from Debian experimental, remaining Ubuntu changes:
* debian/control:
  - Recommends gnome-settings-daemon which has the timezone polkit service
* debian/rules:
  - Update translations template.
* debian/gnome-panel-data.install:
  - Install apport hook
  - Install the "About Ubuntu" menu item.
* debian/patches/01_layout.patch:
  - Disabled, Help & About Ubuntu don't fit as well in Gnome Panel 3
* debian/patches/01_panel_submenus.patch.
  - Dropped
* debian/patches/03_dnd_places_link.patch:
  - Disabled, when using Drag'n'Drop from Places menu, install a link launcher
    (.desktop file) instead of copying the entire directory.
* debian/patches/17_about-ubuntu-translation.patch:
  - List ubuntu-about.desktop for translation.
* debian/patches/40_unset_menuproxy.patch:
  - Make sure gnome-panel and the applets don't pick up menu proxies.
* debian/patches/50_fix-potfiles.patch
  - Fix i18n
* debian/patches/85_disable_shutdown_on_ltsp.patch:
  - Suppress the shutdown option in the panel if LTSP_CLIENT is set.
* debian/patches/71_change_bookmark_submenu_limit_value.patch
  - Dropped, picked up by Debian
* debian/patches/18_lockdown_lock_editor.patch:
* debian/patches/90_git_wnck_show_realize.patch:
* debian/patches/90_fix_linking_DSO_link.patch:
* debian/patches/91_gir_annotations.patch
* debian/patches/92_git_calendar_day.patch
* debian/patches/92_git_fix_applets_in_multiscreen.patch:
  - Dropped, applied upstream
* debian/watch:
  - watch unstable versions

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
 
1
/* vim: set sw=8 et: */
2
2
/*
3
 
 * Copyright (C) 2004 Sun Microsystems, Inc.
 
3
 * panel-lockdown.c: a lockdown tracker.
 
4
 *
 
5
 * Copyright (C) 2011 Novell, Inc.
4
6
 *
5
7
 * This program is free software; you can redistribute it and/or
6
8
 * modify it under the terms of the GNU General Public License as
18
20
 * 02111-1307, USA.
19
21
 *
20
22
 * Authors:
21
 
 *      Matt Keenan  <matt.keenan@sun.com>
22
 
 *      Mark McLoughlin  <mark@skynet.ie>
 
23
 *      Vincent Untz <vuntz@gnome.org>
23
24
 */
24
25
 
25
26
#ifndef __PANEL_LOCKDOWN_H__
26
27
#define __PANEL_LOCKDOWN_H__
27
28
 
28
 
#include <glib.h>
29
 
#include <glib-object.h>
 
29
#include <gio/gio.h>
30
30
 
31
31
G_BEGIN_DECLS
32
32
 
33
 
void panel_lockdown_init     (void);
34
 
void panel_lockdown_finalize (void);
35
 
 
36
 
gboolean panel_lockdown_get_locked_down          (void);
37
 
gboolean panel_lockdown_get_disable_command_line (void);
38
 
gboolean panel_lockdown_get_disable_lock_screen  (void);
39
 
gboolean panel_lockdown_get_disable_log_out      (void);
40
 
gboolean panel_lockdown_get_disable_force_quit   (void);
41
 
 
42
 
gboolean panel_lockdown_is_applet_disabled (const char *iid);
43
 
 
44
 
void panel_lockdown_notify_add    (GCallback callback_func,
45
 
                                   gpointer  user_data);
46
 
void panel_lockdown_notify_remove (GCallback callback_func,
47
 
                                   gpointer  user_data);
 
33
#define PANEL_TYPE_LOCKDOWN            (panel_lockdown_get_type ())
 
34
#define PANEL_LOCKDOWN(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), PANEL_TYPE_LOCKDOWN, PanelLockdown))
 
35
#define PANEL_LOCKDOWN_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), PANEL_TYPE_LOCKDOWN, PanelLockdownClass))
 
36
#define PANEL_IS_LOCKDOWN(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PANEL_TYPE_LOCKDOWN))
 
37
#define PANEL_IS_LOCKDOWN_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PANEL_TYPE_LOCKDOWN))
 
38
#define PANEL_LOCKDOWN_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS((obj), PANEL_TYPE_LOCKDOWN, PanelLockdownClass))
 
39
 
 
40
typedef struct _PanelLockdown          PanelLockdown;
 
41
typedef struct _PanelLockdownClass     PanelLockdownClass;
 
42
typedef struct _PanelLockdownPrivate   PanelLockdownPrivate;
 
43
 
 
44
struct _PanelLockdown {
 
45
        GObject parent;
 
46
 
 
47
        /*< private > */
 
48
        PanelLockdownPrivate *priv;
 
49
};
 
50
 
 
51
struct _PanelLockdownClass {
 
52
        GObjectClass parent_class;
 
53
};
 
54
 
 
55
GType panel_lockdown_get_type (void);
 
56
 
 
57
gboolean panel_lockdown_get_panels_locked_down   (PanelLockdown *lockdown);
 
58
gboolean panel_lockdown_get_disable_command_line (PanelLockdown *lockdown);
 
59
gboolean panel_lockdown_get_disable_lock_screen  (PanelLockdown *lockdown);
 
60
gboolean panel_lockdown_get_disable_log_out      (PanelLockdown *lockdown);
 
61
gboolean panel_lockdown_get_disable_switch_user  (PanelLockdown *lockdown);
 
62
gboolean panel_lockdown_get_disable_force_quit   (PanelLockdown *lockdown);
 
63
 
 
64
gboolean panel_lockdown_is_applet_disabled       (PanelLockdown *lockdown,
 
65
                                                  const char *iid);
 
66
 
 
67
typedef void (*PanelLockdownNotify) (PanelLockdown *lockdown,
 
68
                                     gpointer       user_data);
 
69
 
 
70
void     panel_lockdown_on_notify                (PanelLockdown *      lockdown,
 
71
                                                  const char          *property,
 
72
                                                  GObject             *object_while_alive,
 
73
                                                  PanelLockdownNotify  callback,
 
74
                                                  gpointer             callback_data);
 
75
 
 
76
PanelLockdown *panel_lockdown_get (void);
 
77
 
 
78
gboolean panel_lockdown_get_panels_locked_down_s     (void);
 
79
gboolean panel_lockdown_get_not_panels_locked_down_s (void);
 
80
gboolean panel_lockdown_get_disable_command_line_s   (void);
 
81
gboolean panel_lockdown_get_disable_lock_screen_s    (void);
 
82
gboolean panel_lockdown_get_disable_log_out_s        (void);
 
83
gboolean panel_lockdown_get_disable_switch_user_s    (void);
 
84
gboolean panel_lockdown_get_disable_force_quit_s     (void);
48
85
 
49
86
G_END_DECLS
50
87