/[gluid]/menu.h
ViewVC logotype

Contents of /menu.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 22 - (show annotations)
Sun Sep 27 14:22:45 2009 UTC (8 years, 1 month ago) by ben
File MIME type: text/plain
File size: 1686 byte(s)
cosmetic
1 /*
2 * menu.h Copyright © 2009 by Benoît Rouits <brouits@free.fr>
3 * Published under the terms of the GNU General Public License v2 (GPLv2).
4 *
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License
7 * as published by the Free Software Foundation; either version 2
8 * of the License, or (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 * Boston, MA 02110-1301, USA.
19 *
20 * see the COPYING file included in the jackie package or
21 * http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt for the full licence
22 *
23 */
24
25 #ifndef MENU_H
26 #define MENU_H
27 #include <glib.h>
28 #include <gtk/gtk.h>
29
30 /* create a new (empty) menu */
31 GtkMenu* menu_new(void);
32
33 /* append an item to the menu, and connect its callback on "activate" event */
34 GtkMenuItem* menu_append_item(GtkMenu* menu, gchar* label, GCallback callback, gpointer cb_data);
35
36 /* append a stock image item to the menu, and connect its callback on "activate" event */
37 GtkMenuItem* menu_append_image_item(GtkMenu* menu, const gchar* stock_id, GCallback callback, gpointer cb_data);
38
39 /* show the menu */
40 void menu_show(GtkMenu* menu, guint button, guint activate_time);
41
42 /* hide the menu */
43 void menu_hide(GtkMenu* menu);
44 #endif /* MENU_H */

  ViewVC Help
Powered by ViewVC 1.1.26