home *** CD-ROM | disk | FTP | other *** search
/ PC Pro 2002 April / pcpro0402.iso / essentials / graphics / Gimp / gimp-src-20001226.exe / src / gimp / plug-ins / imagemap / imap_menu_funcs.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-09-06  |  2.1 KB  |  55 lines

  1. /*
  2.  * This is a plug-in for the GIMP.
  3.  *
  4.  * Generates clickable image maps.
  5.  *
  6.  * Copyright (C) 1998-1999 Maurits Rijk  lpeek.mrijk@consunet.nl
  7.  *
  8.  * This program is free software; you can redistribute it and/or modify
  9.  * it under the terms of the GNU General Public License as published by
  10.  * the Free Software Foundation; either version 2 of the License, or
  11.  * (at your option) any later version.
  12.  *
  13.  * This program is distributed in the hope that it will be useful,
  14.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  16.  * GNU General Public License for more details.
  17.  *
  18.  * You should have received a copy of the GNU General Public License
  19.  * along with this program; if not, write to the Free Software
  20.  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  21.  *
  22.  */
  23.  
  24. #ifndef _IMAP_MENU_FUNCS_H
  25. #define _IMAP_MENU_FUNCS_H
  26.  
  27. #include "gtk/gtk.h"
  28.  
  29. typedef void (*MenuCallback)(GtkWidget *widget, gpointer data);
  30.  
  31. void init_accel_group(GtkWidget *window);
  32. GtkWidget *make_item_with_label(GtkWidget *parent, gchar *label, 
  33.                 MenuCallback activate, gpointer data);
  34. GtkWidget *prepend_item_with_label(GtkWidget *parent, gchar *label, 
  35.                    MenuCallback activate, gpointer data);
  36. GtkWidget *insert_item_with_label(GtkWidget *parent, gint position, 
  37.                   gchar *label, MenuCallback activate, 
  38.                   gpointer data);
  39. GtkWidget *make_check_item(GtkWidget *parent, gchar *label, 
  40.                MenuCallback activate, gpointer data);
  41. GtkWidget *make_radio_item(GtkWidget *parent, GSList *group, gchar *label, 
  42.                MenuCallback activate, gpointer data);
  43.  
  44. void make_separator(GtkWidget *parent);
  45. void insert_separator(GtkWidget *parent, gint position);
  46. GtkWidget *make_sub_menu(GtkWidget *parent, gchar *label);
  47. GtkWidget *make_menu_bar_item(GtkWidget *menu_bar, gchar *label);
  48. void menu_command(GtkWidget *widget, gpointer data);
  49.  
  50. void add_accelerator(GtkWidget *widget, guchar accelerator_key,
  51.              guint8 accelerator_mods);
  52.  
  53.  
  54. #endif /* _IMAP_MENU_FUNCS_H */
  55.