~ubuntu-branches/ubuntu/natty/xfce4-panel/natty

« back to all changes in this revision

Viewing changes to plugins/systray/systray-box.h

  • Committer: Bazaar Package Importer
  • Author(s): Lionel Le Folgoc
  • Date: 2011-01-04 19:42:23 UTC
  • mfrom: (1.1.27 upstream)
  • Revision ID: james.westby@ubuntu.com-20110104194223-fuf883uda9kxvwn5
Tags: 4.7.7-0ubuntu1
* New upstream development release.
* debian/patches/abicheck.diff: dropped, included upstream.
* debian/xfce4-panel.shlibs: bumped to >= 4.7.7, because of some changes
  for external plugins.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * Copyright (c) 2007-2009 Nick Schermer <nick@xfce.org>
 
2
 * Copyright (C) 2007-2010 Nick Schermer <nick@xfce.org>
3
3
 *
4
 
 * This program is free software; you can redistribute it and/or modify it
 
4
 * This library is free software; you can redistribute it and/or modify it
5
5
 * under the terms of the GNU General Public License as published by the Free
6
6
 * Software Foundation; either version 2 of the License, or (at your option)
7
7
 * any later version.
8
8
 *
9
 
 * This program is distributed in the hope that it will be useful, but WITHOUT
 
9
 * This library is distributed in the hope that it will be useful, but WITHOUT
10
10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11
11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
12
12
 * more details.
13
13
 *
14
 
 * You should have received a copy of the GNU General Public License along with
15
 
 * this program; if not, write to the Free Software Foundation, Inc., 59 Temple
16
 
 * Place, Suite 330, Boston, MA  02111-1307  USA
 
14
 * You should have received a copy of the GNU Library General Public License
 
15
 * along with this library; if not, write to the Free Software Foundation,
 
16
 * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
17
17
 */
18
18
 
19
19
#ifndef __SYSTRAY_BOX_H__
22
22
typedef struct _SystrayBoxClass SystrayBoxClass;
23
23
typedef struct _SystrayBox      SystrayBox;
24
24
 
 
25
/* keep those in sync with the glade file too! */
 
26
#define SIZE_MAX_MIN     (12)
 
27
#define SIZE_MAX_MAX     (64)
 
28
#define SIZE_MAX_DEFAULT (22)
 
29
 
25
30
#define XFCE_TYPE_SYSTRAY_BOX            (systray_box_get_type ())
26
31
#define XFCE_SYSTRAY_BOX(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), XFCE_TYPE_SYSTRAY_BOX, SystrayBox))
27
32
#define XFCE_SYSTRAY_BOX_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), XFCE_TYPE_SYSTRAY_BOX, SystrayBoxClass))
35
40
 
36
41
GtkWidget *systray_box_new             (void) G_GNUC_MALLOC;
37
42
 
38
 
void       systray_box_set_guess_size  (SystrayBox          *box,
39
 
                                        gint                 guess_size);
40
 
 
41
 
void       systray_box_set_arrow_type  (SystrayBox          *box,
42
 
                                        GtkArrowType         arrow_type);
43
 
 
44
 
void       systray_box_set_rows        (SystrayBox          *box,
45
 
                                        gint                 rows);
46
 
 
47
 
gint       systray_box_get_rows        (SystrayBox          *box);
48
 
 
49
 
void       systray_box_add_with_name   (SystrayBox          *box,
50
 
                                        GtkWidget           *child,
51
 
                                        const gchar         *name);
52
 
 
53
 
void       systray_box_name_add        (SystrayBox          *box,
54
 
                                        const gchar         *name,
55
 
                                        gboolean             hidden);
56
 
 
57
 
void       systray_box_name_set_hidden (SystrayBox          *box,
58
 
                                        const gchar         *name,
59
 
                                        gboolean             hidden);
60
 
 
61
 
gboolean   systray_box_name_get_hidden (SystrayBox          *box,
62
 
                                        const gchar         *name);
63
 
 
64
 
GList     *systray_box_name_list       (SystrayBox          *box);
65
 
 
66
 
void       systray_box_name_clear      (SystrayBox          *box);
 
43
void       systray_box_set_orientation (SystrayBox          *box,
 
44
                                        GtkOrientation       orientation);
 
45
 
 
46
void       systray_box_set_size_max    (SystrayBox          *box,
 
47
                                        gint                 size_max);
 
48
 
 
49
gint       systray_box_get_size_max    (SystrayBox          *box);
 
50
 
 
51
void       systray_box_set_size_alloc  (SystrayBox          *box,
 
52
                                        gint                 size_alloc);
 
53
 
 
54
void       systray_box_set_show_hidden (SystrayBox          *box,
 
55
                                        gboolean             show_hidden);
 
56
 
 
57
gboolean   systray_box_get_show_hidden (SystrayBox          *box);
 
58
 
 
59
void       systray_box_update          (SystrayBox          *box);
67
60
 
68
61
#endif /* !__SYSTRAY_BOX_H__ */