~ubuntu-branches/debian/experimental/xfce4-panel/experimental

« back to all changes in this revision

Viewing changes to libxfce4panel/xfce-panel-item-iface.h

  • Committer: Bazaar Package Importer
  • Author(s): Yves-Alexis Perez
  • Date: 2008-05-19 08:08:22 UTC
  • mfrom: (1.1.16 upstream)
  • Revision ID: james.westby@ubuntu.com-20080519080822-c8ptdv1s8o9r4ou0
Tags: 4.4.2-6
* switch to triggers:
  - debian/postinst: remove xfce-mcs-manager refresh.
  - debian/prerm dropped.
  - debian/control: conflicts against non-triggers-enable xfce4-mcs-manager.
* debian/control: remove useless Conflicts/Replaces against Sarge stuff.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* vim: set expandtab ts=8 sw=4: */
 
2
 
 
3
/*  $Id: xfce-panel-item-iface.h 22660 2006-08-04 21:02:22Z jasper $
 
4
 *
 
5
 *  Copyright © 2005 Jasper Huijsmans <jasper@xfce.org>
 
6
 *
 
7
 *  This program is free software; you can redistribute it and/or modify
 
8
 *  it under the terms of the GNU Library General Public License as published 
 
9
 *  by the Free Software Foundation; either version 2 of the License, or
 
10
 *  (at your option) 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 Library General Public License for more details.
 
16
 *
 
17
 *  You should have received a copy of the GNU Library General Public License
 
18
 *  along with this program; if not, write to the Free Software
 
19
 *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
20
 */
 
21
 
 
22
#ifndef _XFCE_PANEL_ITEM_H
 
23
#define _XFCE_PANEL_ITEM_H
 
24
 
 
25
#include <glib-object.h>
 
26
#include <libxfce4panel/xfce-panel-enums.h>
 
27
 
 
28
#define XFCE_TYPE_PANEL_ITEM                (xfce_panel_item_get_type ())
 
29
#define XFCE_PANEL_ITEM(obj)                (G_TYPE_CHECK_INSTANCE_CAST ((obj), XFCE_TYPE_PANEL_ITEM, XfcePanelItem))
 
30
#define XFCE_IS_PANEL_ITEM(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), XFCE_TYPE_PANEL_ITEM))
 
31
#define XFCE_PANEL_ITEM_GET_INTERFACE(inst) (G_TYPE_INSTANCE_GET_INTERFACE ((inst), XFCE_TYPE_PANEL_ITEM, XfcePanelItemInterface))
 
32
 
 
33
 
 
34
G_BEGIN_DECLS
 
35
 
 
36
typedef struct _XfcePanelItem XfcePanelItem;    /* dummy object */
 
37
typedef struct _XfcePanelItemInterface XfcePanelItemInterface;
 
38
 
 
39
struct _XfcePanelItemInterface
 
40
{
 
41
    GTypeInterface parent;
 
42
 
 
43
    /* vtable */
 
44
    G_CONST_RETURN char *(*get_name)         (XfcePanelItem *item);
 
45
 
 
46
    G_CONST_RETURN char *(*get_id)           (XfcePanelItem *item);
 
47
 
 
48
    G_CONST_RETURN char *(*get_display_name) (XfcePanelItem *item);
 
49
 
 
50
    gboolean (*get_expand)                   (XfcePanelItem *item);
 
51
 
 
52
    void (*free_data)                        (XfcePanelItem *item);
 
53
    
 
54
    void (*save)                             (XfcePanelItem *item);
 
55
 
 
56
    void (*set_size)                         (XfcePanelItem *item, int size);
 
57
 
 
58
    void (*set_screen_position)              (XfcePanelItem *item, 
 
59
                                              XfceScreenPosition position);
 
60
 
 
61
    void (*set_sensitive)                    (XfcePanelItem *item,
 
62
                                              gboolean sensitive);
 
63
 
 
64
    void (*remove)                           (XfcePanelItem *item);
 
65
 
 
66
    void (*configure)                        (XfcePanelItem *item);
 
67
 
 
68
    /* reserved for future expansion */
 
69
    void (*_panel_reserved1) (void);
 
70
    void (*_panel_reserved2) (void);
 
71
    void (*_panel_reserved3) (void);
 
72
};
 
73
 
 
74
GType xfce_panel_item_get_type (void) G_GNUC_CONST;
 
75
 
 
76
/* focus */
 
77
void xfce_panel_item_focus_panel (XfcePanelItem *item);
 
78
 
 
79
/* emit signals -- to be called from implementors */
 
80
 
 
81
void xfce_panel_item_expand_changed (XfcePanelItem *item, gboolean expand);
 
82
 
 
83
void xfce_panel_item_menu_deactivated (XfcePanelItem *item);
 
84
 
 
85
void xfce_panel_item_menu_opened (XfcePanelItem *item);
 
86
 
 
87
void xfce_panel_item_customize_panel (XfcePanelItem *item);
 
88
 
 
89
void xfce_panel_item_customize_items (XfcePanelItem *item);
 
90
 
 
91
void xfce_panel_item_move (XfcePanelItem *item);
 
92
 
 
93
void xfce_panel_item_set_panel_hidden (XfcePanelItem *item, gboolean hidden);
 
94
 
 
95
 
 
96
/* vtable */
 
97
 
 
98
G_CONST_RETURN char *xfce_panel_item_get_name (XfcePanelItem *item);
 
99
 
 
100
G_CONST_RETURN char *xfce_panel_item_get_id (XfcePanelItem *item);
 
101
 
 
102
G_CONST_RETURN char *xfce_panel_item_get_display_name (XfcePanelItem *item);
 
103
 
 
104
gboolean xfce_panel_item_get_expand (XfcePanelItem *item);
 
105
 
 
106
void xfce_panel_item_save (XfcePanelItem *item);
 
107
 
 
108
void xfce_panel_item_free_data (XfcePanelItem *item);
 
109
 
 
110
void xfce_panel_item_set_size (XfcePanelItem *item, 
 
111
                               int size);
 
112
 
 
113
void xfce_panel_item_set_screen_position (XfcePanelItem *item, 
 
114
                                          XfceScreenPosition position);
 
115
 
 
116
void xfce_panel_item_set_sensitive (XfcePanelItem *item,
 
117
                                    gboolean sensitive);
 
118
 
 
119
void xfce_panel_item_remove (XfcePanelItem *item);
 
120
 
 
121
void xfce_panel_item_configure (XfcePanelItem *item);
 
122
 
 
123
 
 
124
G_END_DECLS
 
125
 
 
126
#endif /* _XFCE_PANEL_ITEM_H */