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