2
* Copyright (c) 2007-2009 Nick Schermer <nick@xfce.org>
2
* Copyright (C) 2007-2010 Nick Schermer <nick@xfce.org>
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)
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
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
19
19
#ifndef __SYSTRAY_BOX_H__
22
22
typedef struct _SystrayBoxClass SystrayBoxClass;
23
23
typedef struct _SystrayBox SystrayBox;
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)
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))
36
41
GtkWidget *systray_box_new (void) G_GNUC_MALLOC;
38
void systray_box_set_guess_size (SystrayBox *box,
41
void systray_box_set_arrow_type (SystrayBox *box,
42
GtkArrowType arrow_type);
44
void systray_box_set_rows (SystrayBox *box,
47
gint systray_box_get_rows (SystrayBox *box);
49
void systray_box_add_with_name (SystrayBox *box,
53
void systray_box_name_add (SystrayBox *box,
57
void systray_box_name_set_hidden (SystrayBox *box,
61
gboolean systray_box_name_get_hidden (SystrayBox *box,
64
GList *systray_box_name_list (SystrayBox *box);
66
void systray_box_name_clear (SystrayBox *box);
43
void systray_box_set_orientation (SystrayBox *box,
44
GtkOrientation orientation);
46
void systray_box_set_size_max (SystrayBox *box,
49
gint systray_box_get_size_max (SystrayBox *box);
51
void systray_box_set_size_alloc (SystrayBox *box,
54
void systray_box_set_show_hidden (SystrayBox *box,
55
gboolean show_hidden);
57
gboolean systray_box_get_show_hidden (SystrayBox *box);
59
void systray_box_update (SystrayBox *box);
68
61
#endif /* !__SYSTRAY_BOX_H__ */