comparison src/gtkmenutray.h @ 11553:5c8210f7cbe2

[gaim-migrate @ 13813] Here is my menu tray widget. It needs a bit of work yet and is only capable of displaying status information at the moment. Integration coming in my next commit... committer: Tailor Script <tailor@pidgin.im>
author Gary Kramlich <grim@reaperworld.com>
date Sat, 17 Sep 2005 03:23:50 +0000
parents
children 19941a47405c
comparison
equal deleted inserted replaced
11552:11d30825c1bb 11553:5c8210f7cbe2
1 /**
2 * @file gtkmenutray.h GTK+ Tray menu item
3 * @ingroup gtkui
4 *
5 * Gaim is the legal property of its developers, whose names are too numerous
6 * to list here. Please refer to the COPYRIGHT file distributed with this
7 * source distribution.
8 *
9 * This program is free software; you can redistribute it and/or modify
10 * under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
13 *
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
18 *
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22 */
23 #ifndef GAIM_GTK_MENU_TRAY_H
24 #define GAIM_GTK_MENU_TRAY_H
25
26 #include <gtk/gtkhbox.h>
27 #include <gtk/gtkmenuitem.h>
28
29 #define GAIM_GTK_TYPE_MENU_TRAY (gaim_gtk_menu_tray_get_gtype())
30 #define GAIM_GTK_MENU_TRAY(obj) (GTK_CHECK_CAST((obj), GAIM_GTK_TYPE_MENU_TRAY, GaimGtkMenuTray))
31 #define GAIM_GTK_MENU_TRAY_CLASS(klass) (GTK_CHECK_CLASS_CAST((klass), GAIM_GTK_TYPE_MENU_TRAY, GaimGtkMenuTrayClass))
32 #define GAIM_GTK_IS_MENU_TRAY(obj) (GTK_CHECK_TYPE((obj), GAIM_GTK_TYPE_MENU_TRAY))
33 #define GAIM_GTK_IS_MENU_TRAY_CLASS(klass) (GTK_CHECK_CLASS_TYPE((klass), GAIM_GTK_TYPE_MENU_TRAY))
34 #define GAIM_GTK_MENU_TRAY_GET_CLASS(obj) (GTK_CHECK_GET_CLASS((obj), GAIM_GTK_TYPE_MENU_TRAY, GaimGtkMenuTrayClass))
35
36 typedef struct _GaimGtkMenuTray GaimGtkMenuTray;
37 typedef struct _GaimGtkMenuTrayClass GaimGtkMenuTrayClass;
38
39 /** A GaimGtkMenuTray */
40 struct _GaimGtkMenuTray {
41 GtkMenuItem gparent; /**< The parent instance */
42 };
43
44 /** A GaimGtkMenuTrayClass */
45 struct _GaimGtkMenuTrayClass {
46 GtkMenuItemClass gparent; /**< The parent class */
47 };
48
49 G_BEGIN_DECLS
50
51 /**
52 * Registers the GaimGtkMenuTray class if necessary and returns the
53 * type ID assigned to it.
54 *
55 * @return The GaimGtkMenuTray type ID
56 */
57 GType gaim_gtk_menu_tray_get_gtype(void);
58
59 /**
60 * Creates a new GaimGtkMenuTray
61 *
62 * @return A new GaimGtkMenuTray
63 */
64 GtkWidget *gaim_gtk_menu_tray_new();
65
66 /**
67 * Gets the box for the GaimGtkMenuTray
68 *
69 * @param menu_tray The GaimGtkMenuTray
70 *
71 * @return The box that this menu tray is using
72 */
73 GtkWidget *gaim_gtk_menu_tray_get_box(GaimGtkMenuTray *menu_tray);
74
75 /**
76 * Appends a widget into the tray
77 *
78 * @param menu_tray The tray
79 * @param widget The widget
80 */
81 void gaim_gtk_menu_tray_append(GaimGtkMenuTray *menu_tray, GtkWidget *widget);
82
83 /**
84 * Prepends a widget into the tray
85 *
86 * @param menu_tray The try
87 * @param widget The widget
88 */
89 void gaim_gtk_menu_tray_prepend(GaimGtkMenuTray *menu_tray, GtkWidget *widget);
90
91 G_END_DECLS
92
93 #endif /* GAIM_GTK_MENU_TRAY_H */