gimpmenu.h 2.67 KB
Newer Older
1 2 3 4
/* LIBGIMP - The GIMP Library
 * Copyright (C) 1995-1997 Peter Mattis and Spencer Kimball
 *
 * gimpmenu.h
Manish Singh's avatar
Manish Singh committed
5
 *
6
 * This library is free software: you can redistribute it and/or
Marc Lehmann's avatar
Marc Lehmann committed
7
 * modify it under the terms of the GNU Lesser General Public
Manish Singh's avatar
Manish Singh committed
8
 * License as published by the Free Software Foundation; either
9
 * version 3 of the License, or (at your option) any later version.
10 11 12 13
 *
 * 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
14
 * Lesser General Public License for more details.
Manish Singh's avatar
Manish Singh committed
15
 *
Marc Lehmann's avatar
Marc Lehmann committed
16
 * You should have received a copy of the GNU Lesser General Public
17
 * License along with this library.  If not, see
18
 * <https://www.gnu.org/licenses/>.
19
 */
20

21 22 23 24
#if !defined (__GIMP_UI_H_INSIDE__) && !defined (GIMP_COMPILATION)
#error "Only <libgimp/gimpui.h> can be included directly."
#endif

Elliot Lee's avatar
Elliot Lee committed
25 26 27
#ifndef __GIMP_MENU_H__
#define __GIMP_MENU_H__

28 29 30 31
/*  These functions are deprecated and should not be used in newly
 *  written code.
 */

32
G_BEGIN_DECLS
Elliot Lee's avatar
Elliot Lee committed
33

34
#ifndef GIMP_DISABLE_DEPRECATED
Elliot Lee's avatar
Elliot Lee committed
35

36 37 38 39 40
typedef gboolean (* GimpConstraintFunc) (gint32   image_id,
                                         gint32   drawable_id,
                                         gpointer data);
typedef void     (* GimpMenuCallback)   (gint32   any_id,
                                         gpointer data);
41

Elliot Lee's avatar
Elliot Lee committed
42

43
GIMP_DEPRECATED_FOR(gimp_image_combo_box_new)
44
GtkWidget * gimp_image_menu_new    (GimpConstraintFunc constraint,
Sven Neumann's avatar
Sven Neumann committed
45 46 47
                                    GimpMenuCallback   callback,
                                    gpointer           data,
                                    gint32             active_image);
48
GIMP_DEPRECATED_FOR(gimp_layer_combo_box_new)
49
GtkWidget * gimp_layer_menu_new    (GimpConstraintFunc constraint,
Sven Neumann's avatar
Sven Neumann committed
50 51 52
                                    GimpMenuCallback   callback,
                                    gpointer           data,
                                    gint32             active_layer);
53
GIMP_DEPRECATED_FOR(gimp_channel_combo_box_new)
54
GtkWidget * gimp_channel_menu_new  (GimpConstraintFunc constraint,
Sven Neumann's avatar
Sven Neumann committed
55 56 57
                                    GimpMenuCallback   callback,
                                    gpointer           data,
                                    gint32             active_channel);
58
GIMP_DEPRECATED_FOR(gimp_drawable_combo_box_new)
59
GtkWidget * gimp_drawable_menu_new (GimpConstraintFunc constraint,
Sven Neumann's avatar
Sven Neumann committed
60 61 62
                                    GimpMenuCallback   callback,
                                    gpointer           data,
                                    gint32             active_drawable);
Elliot Lee's avatar
Elliot Lee committed
63

64
#endif /*  GIMP_DISABLE_DEPRECATED  */
65

66
G_END_DECLS
Elliot Lee's avatar
Elliot Lee committed
67 68

#endif /* __GIMP_MENU_H__ */