gtkmenutray.h
Go to the documentation of this file.
1 
6 /* Pidgin is the legal property of its developers, whose names are too numerous
7  * to list here. Please refer to the COPYRIGHT file distributed with this
8  * source distribution.
9  *
10  * This program is free software; you can redistribute it and/or modify
11  * under the terms of the GNU General Public License as published by
12  * the Free Software Foundation; either version 2 of the License, or
13  * (at your option) any later version.
14  *
15  * This program is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18  * GNU General Public License for more details.
19  *
20  * You should have received a copy of the GNU General Public License
21  * along with this program; if not, write to the Free Software
22  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
23  */
24 #ifndef PIDGIN_MENU_TRAY_H
25 #define PIDGIN_MENU_TRAY_H
26 
27 #include <gtk/gtk.h>
28 
29 #define PIDGIN_TYPE_MENU_TRAY (pidgin_menu_tray_get_gtype())
30 #define PIDGIN_MENU_TRAY(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), PIDGIN_TYPE_MENU_TRAY, PidginMenuTray))
31 #define PIDGIN_MENU_TRAY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), PIDGIN_TYPE_MENU_TRAY, PidginMenuTrayClass))
32 #define PIDGIN_IS_MENU_TRAY(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), PIDGIN_TYPE_MENU_TRAY))
33 #define PIDGIN_IS_MENU_TRAY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), PIDGIN_TYPE_MENU_TRAY))
34 #define PIDGIN_MENU_TRAY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), PIDGIN_TYPE_MENU_TRAY, PidginMenuTrayClass))
35 
36 typedef struct _PidginMenuTray PidginMenuTray;
38 
41  GtkMenuItem gparent;
42  GtkWidget *tray;
43  GtkTooltips *tooltips;
44 };
45 
48  GtkMenuItemClass gparent;
49 };
50 
51 G_BEGIN_DECLS
52 
59 GType pidgin_menu_tray_get_gtype(void);
60 
66 GtkWidget *pidgin_menu_tray_new(void);
67 
75 GtkWidget *pidgin_menu_tray_get_box(PidginMenuTray *menu_tray);
76 
84 void pidgin_menu_tray_append(PidginMenuTray *menu_tray, GtkWidget *widget, const char *tooltip);
85 
93 void pidgin_menu_tray_prepend(PidginMenuTray *menu_tray, GtkWidget *widget, const char *tooltip);
94 
102 void pidgin_menu_tray_set_tooltip(PidginMenuTray *menu_tray, GtkWidget *widget, const char *tooltip);
103 
104 G_END_DECLS
105 
106 #endif /* PIDGIN_MENU_TRAY_H */
G_BEGIN_DECLS GType pidgin_menu_tray_get_gtype(void)
Registers the PidginMenuTray class if necessary and returns the type ID assigned to it...
void pidgin_menu_tray_set_tooltip(PidginMenuTray *menu_tray, GtkWidget *widget, const char *tooltip)
Set the tooltip for a widget.
A PidginMenuTray.
Definition: gtkmenutray.h:40
GtkWidget * tray
The tray.
Definition: gtkmenutray.h:42
GtkWidget * pidgin_menu_tray_get_box(PidginMenuTray *menu_tray)
Gets the box for the PidginMenuTray.
GtkWidget * pidgin_menu_tray_new(void)
Creates a new PidginMenuTray.
void pidgin_menu_tray_append(PidginMenuTray *menu_tray, GtkWidget *widget, const char *tooltip)
Appends a widget into the tray.
A PidginMenuTrayClass.
Definition: gtkmenutray.h:47
GtkMenuItemClass gparent
The parent class.
Definition: gtkmenutray.h:48
GtkMenuItem gparent
The parent instance.
Definition: gtkmenutray.h:41
GtkTooltips * tooltips
Tooltips.
Definition: gtkmenutray.h:43
void pidgin_menu_tray_prepend(PidginMenuTray *menu_tray, GtkWidget *widget, const char *tooltip)
Prepends a widget into the tray.