menus.h 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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. #ifndef __MENUS_H__
  19. #define __MENUS_H__
  20. typedef struct _GimpItemFactoryEntry GimpItemFactoryEntry;
  21. struct _GimpItemFactoryEntry
  22. {
  23. GtkItemFactoryEntry entry;
  24. const gchar *help_page;
  25. gchar *description;
  26. };
  27. void menus_get_toolbox_menubar (GtkWidget **menubar,
  28. GtkAccelGroup **accel_group);
  29. void menus_get_image_menu (GtkWidget **menu,
  30. GtkAccelGroup **accel_group);
  31. void menus_get_load_menu (GtkWidget **menu,
  32. GtkAccelGroup **accel_group);
  33. void menus_get_save_menu (GtkWidget **menu,
  34. GtkAccelGroup **accel_group);
  35. void menus_get_layers_menu (GtkWidget **menu,
  36. GtkAccelGroup **accel_group);
  37. void menus_get_channels_menu (GtkWidget **menu,
  38. GtkAccelGroup **accel_group);
  39. void menus_get_paths_menu (GtkWidget **menu,
  40. GtkAccelGroup **accel_group);
  41. void menus_create_item_from_full_path (GimpItemFactoryEntry *entry,
  42. gchar *domain_name,
  43. gpointer callback_data);
  44. void menus_reorder_plugins (void);
  45. void menus_destroy (gchar *path);
  46. void menus_quit (void);
  47. void menus_set_sensitive (gchar *path,
  48. gboolean sensitive);
  49. void menus_set_state (gchar *path,
  50. gboolean state);
  51. void menus_last_opened_add (gchar *filename);
  52. #endif /* __MENUS_H__ */