pidgin: gtkmenutray.h Source File

pidgin 2.14.4

Loading...
Searching...
No Matches
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
36typedef struct _PidginMenuTray PidginMenuTray;
37typedef struct _PidginMenuTrayClass PidginMenuTrayClass;
38
40 struct _PidginMenuTray {
41 GtkMenuItem gparent;
42 GtkWidget *tray;
43 GtkTooltips *tooltips;
44};
45
47 struct _PidginMenuTrayClass {
48 GtkMenuItemClass gparent;
49};
50
51G_BEGIN_DECLS
52
59GType pidgin_menu_tray_get_gtype(void);
60
66GtkWidget *pidgin_menu_tray_new(void);
67
75GtkWidget *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
104G_END_DECLS
105
106#endif /* PIDGIN_MENU_TRAY_H */
pidgin_menu_tray_append
void pidgin_menu_tray_append(PidginMenuTray *menu_tray, GtkWidget *widget, const char *tooltip)
Appends a widget into the tray.
pidgin_menu_tray_set_tooltip
void pidgin_menu_tray_set_tooltip(PidginMenuTray *menu_tray, GtkWidget *widget, const char *tooltip)
Set the tooltip for a widget.
pidgin_menu_tray_get_gtype
G_BEGIN_DECLS GType pidgin_menu_tray_get_gtype(void)
Registers the PidginMenuTray class if necessary and returns the type ID assigned to it.
pidgin_menu_tray_new
GtkWidget * pidgin_menu_tray_new(void)
Creates a new PidginMenuTray.
pidgin_menu_tray_get_box
GtkWidget * pidgin_menu_tray_get_box(PidginMenuTray *menu_tray)
Gets the box for the PidginMenuTray.
pidgin_menu_tray_prepend
void pidgin_menu_tray_prepend(PidginMenuTray *menu_tray, GtkWidget *widget, const char *tooltip)
Prepends a widget into the tray.
_PidginMenuTrayClass
A PidginMenuTrayClass.
Definition: gtkmenutray.h:47
_PidginMenuTrayClass::gparent
GtkMenuItemClass gparent
The parent class.
Definition: gtkmenutray.h:48
_PidginMenuTray
A PidginMenuTray.
Definition: gtkmenutray.h:40
_PidginMenuTray::tray
GtkWidget * tray
The tray.
Definition: gtkmenutray.h:42
_PidginMenuTray::gparent
GtkMenuItem gparent
The parent instance.
Definition: gtkmenutray.h:41
_PidginMenuTray::tooltips
GtkTooltips * tooltips
Tooltips.
Definition: gtkmenutray.h:43