2000-05-31 14:15:06 +08:00
|
|
|
/* LIBGIMP - The GIMP Library
|
|
|
|
* Copyright (C) 1995-1997 Peter Mattis and Spencer Kimball
|
|
|
|
*
|
|
|
|
* gimpmenu.h
|
1998-01-25 18:26:47 +08:00
|
|
|
*
|
2009-01-18 06:28:01 +08:00
|
|
|
* This library is free software: you can redistribute it and/or
|
1999-11-18 05:13:50 +08:00
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
1998-01-25 18:26:47 +08:00
|
|
|
* License as published by the Free Software Foundation; either
|
2009-01-18 06:28:01 +08:00
|
|
|
* version 3 of the License, or (at your option) any later version.
|
2000-02-26 11:41:06 +08:00
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
1999-12-26 15:54:39 +08:00
|
|
|
* Lesser General Public License for more details.
|
1998-01-25 18:26:47 +08:00
|
|
|
*
|
1999-11-18 05:13:50 +08:00
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
2009-01-18 06:28:01 +08:00
|
|
|
* License along with this library. If not, see
|
|
|
|
* <http://www.gnu.org/licenses/>.
|
2003-12-05 23:55:15 +08:00
|
|
|
*/
|
2000-05-31 07:38:46 +08:00
|
|
|
|
2011-04-29 01:59:52 +08:00
|
|
|
#if !defined (__GIMP_UI_H_INSIDE__) && !defined (GIMP_COMPILATION)
|
|
|
|
#error "Only <libgimp/gimpui.h> can be included directly."
|
|
|
|
#endif
|
|
|
|
|
1997-11-25 06:05:25 +08:00
|
|
|
#ifndef __GIMP_MENU_H__
|
|
|
|
#define __GIMP_MENU_H__
|
|
|
|
|
2004-04-22 07:09:16 +08:00
|
|
|
/* These functions are deprecated and should not be used in newly
|
|
|
|
* written code.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef GIMP_DISABLE_DEPRECATED
|
|
|
|
|
|
|
|
|
2001-11-23 07:46:13 +08:00
|
|
|
G_BEGIN_DECLS
|
1997-11-25 06:05:25 +08:00
|
|
|
|
|
|
|
|
2003-07-24 01:48:32 +08:00
|
|
|
typedef gboolean (* GimpConstraintFunc) (gint32 image_id,
|
|
|
|
gint32 drawable_id,
|
|
|
|
gpointer data);
|
|
|
|
typedef void (* GimpMenuCallback) (gint32 any_id,
|
|
|
|
gpointer data);
|
2000-05-09 01:45:16 +08:00
|
|
|
|
1997-11-25 06:05:25 +08:00
|
|
|
|
2000-05-31 07:38:46 +08:00
|
|
|
GtkWidget * gimp_image_menu_new (GimpConstraintFunc constraint,
|
2006-04-12 18:53:28 +08:00
|
|
|
GimpMenuCallback callback,
|
|
|
|
gpointer data,
|
|
|
|
gint32 active_image);
|
2000-05-31 07:38:46 +08:00
|
|
|
GtkWidget * gimp_layer_menu_new (GimpConstraintFunc constraint,
|
2006-04-12 18:53:28 +08:00
|
|
|
GimpMenuCallback callback,
|
|
|
|
gpointer data,
|
|
|
|
gint32 active_layer);
|
2000-05-31 07:38:46 +08:00
|
|
|
GtkWidget * gimp_channel_menu_new (GimpConstraintFunc constraint,
|
2006-04-12 18:53:28 +08:00
|
|
|
GimpMenuCallback callback,
|
|
|
|
gpointer data,
|
|
|
|
gint32 active_channel);
|
2000-05-31 07:38:46 +08:00
|
|
|
GtkWidget * gimp_drawable_menu_new (GimpConstraintFunc constraint,
|
2006-04-12 18:53:28 +08:00
|
|
|
GimpMenuCallback callback,
|
|
|
|
gpointer data,
|
|
|
|
gint32 active_drawable);
|
1997-11-25 06:05:25 +08:00
|
|
|
|
2000-05-09 01:45:16 +08:00
|
|
|
|
2001-11-23 07:46:13 +08:00
|
|
|
G_END_DECLS
|
1997-11-25 06:05:25 +08:00
|
|
|
|
2004-04-22 07:09:16 +08:00
|
|
|
|
|
|
|
#endif /* GIMP_DISABLE_DEPRECATED */
|
|
|
|
|
1997-11-25 06:05:25 +08:00
|
|
|
#endif /* __GIMP_MENU_H__ */
|