home *** CD-ROM | disk | FTP | other *** search
/ PC Pro 2002 April / pcpro0402.iso / essentials / graphics / Gimp / gimp-src-20001226.exe / src / gimp / app / menus.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-12-17  |  2.4 KB  |  67 lines

  1. /* The GIMP -- an image manipulation program
  2.  * Copyright (C) 1995 Spencer Kimball and Peter Mattis
  3.  *
  4.  * This program is free software; you can redistribute it and/or modify
  5.  * it under the terms of the GNU General Public License as published by
  6.  * the Free Software Foundation; either version 2 of the License, or
  7.  * (at your option) any later version.
  8.  *
  9.  * This program is distributed in the hope that it will be useful,
  10.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12.  * GNU General Public License for more details.
  13.  *
  14.  * You should have received a copy of the GNU General Public License
  15.  * along with this program; if not, write to the Free Software
  16.  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  17.  */
  18.  
  19. #ifndef __MENUS_H__
  20. #define __MENUS_H__
  21.  
  22.  
  23. typedef struct _GimpItemFactoryEntry GimpItemFactoryEntry;
  24.  
  25. struct _GimpItemFactoryEntry
  26. {
  27.   GtkItemFactoryEntry  entry;
  28.  
  29.   const gchar *help_page;
  30.   gchar       *description;
  31. };
  32.  
  33. void menus_get_toolbox_menubar (GtkWidget            **menubar,
  34.                 GtkAccelGroup        **accel_group);
  35. void menus_get_image_menu      (GtkWidget            **menu,
  36.                 GtkAccelGroup        **accel_group);
  37. void menus_get_load_menu       (GtkWidget            **menu,
  38.                 GtkAccelGroup        **accel_group);
  39. void menus_get_save_menu       (GtkWidget            **menu,
  40.                 GtkAccelGroup        **accel_group);
  41. void menus_get_layers_menu     (GtkWidget            **menu,
  42.                 GtkAccelGroup        **accel_group);
  43. void menus_get_channels_menu   (GtkWidget            **menu,
  44.                 GtkAccelGroup        **accel_group);
  45. void menus_get_paths_menu      (GtkWidget            **menu,
  46.                 GtkAccelGroup        **accel_group);
  47.  
  48. void menus_create_item_from_full_path (GimpItemFactoryEntry  *entry,
  49.                        gchar                 *domain_name,
  50.                        gpointer               callback_data);
  51.  
  52. void menus_reorder_plugins     (void);
  53.  
  54. void menus_destroy             (gchar                 *path);
  55.  
  56. void menus_quit                (void);
  57.  
  58. void menus_set_sensitive       (gchar                 *path,
  59.                 gboolean               sensitive);
  60.  
  61. void menus_set_state           (gchar                 *path,
  62.                 gboolean               state);
  63.  
  64. void menus_last_opened_add     (gchar                 *filename);
  65.  
  66. #endif /* __MENUS_H__ */
  67.