~vanvugt/ubuntu/oneiric/geeqie/fix-788321

« back to all changes in this revision

Viewing changes to src/ui_menu.h

  • Committer: Bazaar Package Importer
  • Author(s): Michal Čihař
  • Date: 2008-06-10 08:42:37 UTC
  • Revision ID: james.westby@ubuntu.com-20080610084237-foorlvywoxj92o04
Tags: upstream-1.0~alpha1
Import upstream version 1.0~alpha1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * (SLIK) SimpLIstic sKin functions
 
3
 * (C) 2004 John Ellis
 
4
 * Copyright (C) 2008 The Geeqie Team
 
5
 *
 
6
 * Author: John Ellis
 
7
 *
 
8
 * This software is released under the GNU General Public License (GNU GPL).
 
9
 * Please read the included file COPYING for more information.
 
10
 * This software comes with no warranty of any kind, use at your own risk!
 
11
 */
 
12
 
 
13
 
 
14
#ifndef UI_MENU_H
 
15
#define UI_MENU_H
 
16
 
 
17
 
 
18
GtkWidget *menu_item_add(GtkWidget *menu, const gchar *label,
 
19
                         GCallback func, gpointer data);
 
20
GtkWidget *menu_item_add_stock(GtkWidget *menu, const gchar *label, const gchar *stock_id,
 
21
                               GCallback func, gpointer data);
 
22
GtkWidget *menu_item_add_sensitive(GtkWidget *menu, const gchar *label, gint sensitive,
 
23
                                   GCallback func, gpointer data);
 
24
GtkWidget *menu_item_add_stock_sensitive(GtkWidget *menu, const gchar *label, const gchar *stock_id, gint sensitive,
 
25
                                         GCallback func, gpointer data);
 
26
GtkWidget *menu_item_add_check(GtkWidget *menu, const gchar *label, gint active,
 
27
                               GCallback func, gpointer data);
 
28
GtkWidget *menu_item_add_radio(GtkWidget *menu, GtkWidget *parent,
 
29
                               const gchar *label, gint active,
 
30
                               GCallback func, gpointer data);
 
31
void menu_item_add_divider(GtkWidget *menu);
 
32
 
 
33
/* use to avoid mnemonics, for example filenames */
 
34
GtkWidget *menu_item_add_simple(GtkWidget *menu, const gchar *label,
 
35
                                GCallback func, gpointer data);
 
36
 
 
37
GtkWidget *popup_menu_short_lived(void);
 
38
 
 
39
/* clamp a menu's position to within the screen
 
40
 * if menu will attempt to stay out of region y to y+height
 
41
 */
 
42
gint popup_menu_position_clamp(GtkMenu *menu, gint *x, gint *y, gint height);
 
43
 
 
44
 
 
45
#endif