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
|
|
|
*
|
|
|
|
* 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
|
2000-02-26 11:41:06 +08:00
|
|
|
* version 2 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* 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
|
1998-04-13 13:44:11 +08:00
|
|
|
* License along with this library; if not, write to the
|
|
|
|
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
|
|
* Boston, MA 02111-1307, USA.
|
2003-12-05 23:55:15 +08:00
|
|
|
*/
|
2000-05-31 07:38:46 +08:00
|
|
|
|
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,
|
|
|
|
GimpMenuCallback callback,
|
|
|
|
gpointer data,
|
|
|
|
gint32 active_image);
|
|
|
|
GtkWidget * gimp_layer_menu_new (GimpConstraintFunc constraint,
|
|
|
|
GimpMenuCallback callback,
|
|
|
|
gpointer data,
|
|
|
|
gint32 active_layer);
|
|
|
|
GtkWidget * gimp_channel_menu_new (GimpConstraintFunc constraint,
|
|
|
|
GimpMenuCallback callback,
|
|
|
|
gpointer data,
|
|
|
|
gint32 active_channel);
|
|
|
|
GtkWidget * gimp_drawable_menu_new (GimpConstraintFunc constraint,
|
|
|
|
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__ */
|