mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-22 20:41:43 +00:00
04d29efd74
2003-01-25 Sven Neumann <sven@gimp.org> * app/widgets/widgets-enums.h: added a new enum to specify how to display histograms. * app/widgets/widgets-enums.c: regenerated. * app/widgets/gimphistogramview.[ch]: added a scale property and made channel a property. Added support for linear histograms based on a patch from Akkana (see bug #72951). * app/widgets/gimphistogrambox.c: redraw the gradient when the histogram view notifies it that the displayed channel has changed. * app/tools/gimphistogramtool.c: added a menu to configure the histogram scale.
70 lines
1.4 KiB
C
70 lines
1.4 KiB
C
|
|
/* Generated data (by gimp-mkenums) */
|
|
|
|
#include "config.h"
|
|
#include <gtk/gtk.h>
|
|
#include "widgets-enums.h"
|
|
#include "libgimp/gimpintl.h"
|
|
|
|
/* enumerations from "./widgets-enums.h" */
|
|
|
|
static const GEnumValue gimp_help_browser_type_enum_values[] =
|
|
{
|
|
{ GIMP_HELP_BROWSER_GIMP, N_("Internal"), "gimp" },
|
|
{ GIMP_HELP_BROWSER_NETSCAPE, N_("Netscape"), "netscape" },
|
|
{ 0, NULL, NULL }
|
|
};
|
|
|
|
GType
|
|
gimp_help_browser_type_get_type (void)
|
|
{
|
|
static GType enum_type = 0;
|
|
|
|
if (!enum_type)
|
|
enum_type = g_enum_register_static ("GimpHelpBrowserType", gimp_help_browser_type_enum_values);
|
|
|
|
return enum_type;
|
|
}
|
|
|
|
|
|
static const GEnumValue gimp_zoom_type_enum_values[] =
|
|
{
|
|
{ GIMP_ZOOM_IN, N_("Zoom in"), "in" },
|
|
{ GIMP_ZOOM_OUT, N_("Zoom out"), "out" },
|
|
{ 0, NULL, NULL }
|
|
};
|
|
|
|
GType
|
|
gimp_zoom_type_get_type (void)
|
|
{
|
|
static GType enum_type = 0;
|
|
|
|
if (!enum_type)
|
|
enum_type = g_enum_register_static ("GimpZoomType", gimp_zoom_type_enum_values);
|
|
|
|
return enum_type;
|
|
}
|
|
|
|
|
|
static const GEnumValue gimp_histogram_scale_enum_values[] =
|
|
{
|
|
{ GIMP_HISTOGRAM_SCALE_LINEAR, N_("Linear"), "linear" },
|
|
{ GIMP_HISTOGRAM_SCALE_LOGARITHMIC, N_("Logarithmic"), "logarithmic" },
|
|
{ 0, NULL, NULL }
|
|
};
|
|
|
|
GType
|
|
gimp_histogram_scale_get_type (void)
|
|
{
|
|
static GType enum_type = 0;
|
|
|
|
if (!enum_type)
|
|
enum_type = g_enum_register_static ("GimpHistogramScale", gimp_histogram_scale_enum_values);
|
|
|
|
return enum_type;
|
|
}
|
|
|
|
|
|
/* Generated data ends here */
|
|
|