mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-19 14:23:33 +00:00
version number bump
* configure.in: version number bump * autogen.sh * configure.in * app/Makefile.am: comment out gcg stuff, nobody seems to be using it * app/colormap_dialog.*: added generated files -Yosh
This commit is contained in:
parent
d5cc2ac5da
commit
e0dc5cd9e1
10
ChangeLog
10
ChangeLog
|
@ -1,3 +1,13 @@
|
|||
Sat Aug 21 17:34:53 PDT 1999 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* configure.in: version number bump
|
||||
|
||||
* autogen.sh
|
||||
* configure.in
|
||||
* app/Makefile.am: comment out gcg stuff, nobody seems to be using it
|
||||
|
||||
* app/colormap_dialog.*: added generated files
|
||||
|
||||
Sat Aug 21 22:32:25 MEST 1999 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* app/brush_select.c
|
||||
|
|
|
@ -3,8 +3,3 @@ Makefile.in
|
|||
.deps
|
||||
.libs
|
||||
gimp
|
||||
colormap_dialog.c
|
||||
colormap_dialog.t.h
|
||||
colormap_dialog.h
|
||||
colormap_dialog.p.h
|
||||
colormap_dialog.i.h
|
||||
|
|
|
@ -450,40 +450,40 @@ files:
|
|||
done
|
||||
|
||||
# GCG stuff
|
||||
|
||||
SUFFIXES = .gc .gh
|
||||
|
||||
if WITH_GCG
|
||||
GCG = ../tools/gcg/gcg -I$(srcdir) -I$(top_srcdir)/tools/gcg/gh
|
||||
GEN_CODE = colormap_dialog.c
|
||||
if WITH_GNU_MAKE
|
||||
GEN_HEADER =$(subst .gc,.t.h,$(GCG_DEFS)) \
|
||||
$(subst .gc,.p.h,$(GCG_DEFS)) \
|
||||
$(subst .gc,.i.h,$(GCG_DEFS)) \
|
||||
$(subst .gc,.h,$(GCG_DEFS))
|
||||
|
||||
$(GEN_CODE): %.c: %.gc
|
||||
$(GCG) -o $@ $<
|
||||
else # WITH_GNU_MAKE
|
||||
GEN_HEADER = # fill in here manually, if you bother
|
||||
.gc.c:
|
||||
$(GCG) -o $@ $<
|
||||
endif # WITH_GNU_MAKE
|
||||
|
||||
BUILT_SOURCES = $(GEN_CODE) $(GEN_HEADER)
|
||||
|
||||
if ENABLE_GCG_DEPS
|
||||
if WITH_GNU_MAKE
|
||||
# dependency magic
|
||||
GCGMAKEDEPEND = $(top_srcdir)/tools/gcg/gcgmakedepend
|
||||
$(DEF_DEPS): .deps/%.d: %.gc
|
||||
$(GCGMAKEDEPEND) $(DEF_INC) $< >$@
|
||||
#
|
||||
# SUFFIXES = .gc .gh
|
||||
#
|
||||
# if WITH_GCG
|
||||
# GCG = ../tools/gcg/gcg -I$(srcdir) -I$(top_srcdir)/tools/gcg/gh
|
||||
# GEN_CODE = colormap_dialog.c
|
||||
# if WITH_GNU_MAKE
|
||||
# GEN_HEADER =$(subst .gc,.t.h,$(GCG_DEFS)) \
|
||||
# $(subst .gc,.p.h,$(GCG_DEFS)) \
|
||||
# $(subst .gc,.i.h,$(GCG_DEFS)) \
|
||||
# $(subst .gc,.h,$(GCG_DEFS))
|
||||
#
|
||||
# $(GEN_CODE): %.c: %.gc
|
||||
# $(GCG) -o $@ $<
|
||||
# else # WITH_GNU_MAKE
|
||||
# GEN_HEADER = # fill in here manually, if you bother
|
||||
# .gc.c:
|
||||
# $(GCG) -o $@ $<
|
||||
# endif # WITH_GNU_MAKE
|
||||
#
|
||||
# BUILT_SOURCES = $(GEN_CODE) $(GEN_HEADER)
|
||||
#
|
||||
# if ENABLE_GCG_DEPS
|
||||
# if WITH_GNU_MAKE
|
||||
# # dependency magic
|
||||
# GCGMAKEDEPEND = $(top_srcdir)/tools/gcg/gcgmakedepend
|
||||
# $(DEF_DEPS): .deps/%.d: %.gc
|
||||
# $(GCGMAKEDEPEND) $(DEF_INC) $< >$@
|
||||
# automake uses .P for .c files, we use .d for .gc files, should
|
||||
# be no conflict..
|
||||
GCG_DEFS = $(subst .c,.gc,$(GEN_CODE))
|
||||
DEF_DEPS = $(patsubst %.gc,.deps/%.d,$(GCG_DEFS))
|
||||
-include $(DEF_DEPS)
|
||||
endif # WITH_GNU_MAKE
|
||||
endif # ENABLE_GCG_DEPS
|
||||
endif # WITH_GCG
|
||||
# GCG_DEFS = $(subst .c,.gc,$(GEN_CODE))
|
||||
# DEF_DEPS = $(patsubst %.gc,.deps/%.d,$(GCG_DEFS))
|
||||
# -include $(DEF_DEPS)
|
||||
# endif # WITH_GNU_MAKE
|
||||
# endif # ENABLE_GCG_DEPS
|
||||
# endif # WITH_GCG
|
||||
# end GCG stuff
|
||||
|
|
109
app/colormap_dialog.c
Normal file
109
app/colormap_dialog.c
Normal file
|
@ -0,0 +1,109 @@
|
|||
#include <colormap_dialog.p.h>
|
||||
|
||||
GtkType _gimp_colormap_dialog_type;
|
||||
static void gimp_colormap_dialog_class_init (GimpColormapDialogClass* klass);
|
||||
static void gimp_colormap_dialog_init (GimpColormapDialog* colormap_dialog);
|
||||
static guint _gimp_colormap_dialog_signal_selected;
|
||||
static void _gimp_colormap_dialog_demarshall_0 (GtkObject*, GtkSignalFunc, gpointer, GtkArg*);
|
||||
typedef void (*_GimpColormapDialogHandler_0)(GtkObject*, gpointer);
|
||||
static void _gimp_colormap_dialog_demarshall_0 (
|
||||
GtkObject* object,
|
||||
GtkSignalFunc func,
|
||||
gpointer user_data,
|
||||
GtkArg* args){
|
||||
(void)args;
|
||||
((_GimpColormapDialogHandler_0)func)(object,
|
||||
user_data);
|
||||
}
|
||||
#ifdef GCG_IMPL
|
||||
# include GCG_IMPL
|
||||
#else
|
||||
# include "colormap_dialog.i.c"
|
||||
#endif
|
||||
|
||||
void _gimp_colormap_dialog_init_type (void){
|
||||
static GtkTypeInfo info = {
|
||||
"GimpColormapDialog",
|
||||
sizeof (GimpColormapDialog),
|
||||
sizeof (GimpColormapDialogClass),
|
||||
(GtkClassInitFunc) gimp_colormap_dialog_class_init,
|
||||
(GtkObjectInitFunc) gimp_colormap_dialog_init,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
};
|
||||
if (!_gimp_colormap_dialog_type)
|
||||
_gimp_colormap_dialog_type = gtk_type_unique (GTK_TYPE_DIALOG, &info);
|
||||
}
|
||||
|
||||
static void gimp_colormap_dialog_class_init (GimpColormapDialogClass* klass){
|
||||
GtkObjectClass* obklass = (GtkObjectClass*) klass;
|
||||
(void) obklass;
|
||||
_gimp_colormap_dialog_signal_selected =
|
||||
gtk_signal_new("selected",
|
||||
GTK_RUN_FIRST,
|
||||
obklass->type,
|
||||
GTK_SIGNAL_OFFSET (GimpColormapDialogClass, selected),
|
||||
_gimp_colormap_dialog_demarshall_0,
|
||||
GTK_TYPE_NONE,
|
||||
0);
|
||||
gtk_object_class_add_signals(obklass,
|
||||
&_gimp_colormap_dialog_signal_selected,
|
||||
1);
|
||||
#ifdef COLORMAP_DIALOG_CLASS_INIT
|
||||
COLORMAP_DIALOG_CLASS_INIT (klass);
|
||||
#endif
|
||||
}
|
||||
|
||||
static void gimp_colormap_dialog_init (GimpColormapDialog* colormap_dialog){
|
||||
(void) colormap_dialog;
|
||||
#ifdef COLORMAP_DIALOG_INIT
|
||||
COLORMAP_DIALOG_INIT (colormap_dialog);
|
||||
#endif
|
||||
}
|
||||
|
||||
GimpColormapDialog* gimp_colormap_dialog_create (
|
||||
GimpSet* context){
|
||||
g_assert (!context || GIMP_IS_SET(context));
|
||||
#ifdef COLORMAP_DIALOG_CREATE
|
||||
return COLORMAP_DIALOG_CREATE (context);
|
||||
#else
|
||||
g_error("Not implemented: Gimp.ColormapDialog.create");
|
||||
#endif
|
||||
}
|
||||
|
||||
GimpImage* gimp_colormap_dialog_image (
|
||||
const GimpColormapDialog* colormap_dialog){
|
||||
g_assert (colormap_dialog);
|
||||
g_assert (GIMP_IS_COLORMAP_DIALOG(colormap_dialog));
|
||||
return colormap_dialog->image;
|
||||
}
|
||||
|
||||
gint gimp_colormap_dialog_col_index (
|
||||
const GimpColormapDialog* colormap_dialog){
|
||||
g_assert (colormap_dialog);
|
||||
g_assert (GIMP_IS_COLORMAP_DIALOG(colormap_dialog));
|
||||
return colormap_dialog->col_index;
|
||||
}
|
||||
|
||||
void gimp_colormap_dialog_connect_selected (
|
||||
GimpColormapDialogHandler_selected handler,
|
||||
gpointer user_data,
|
||||
GimpColormapDialog* colormap_dialog){
|
||||
g_assert (colormap_dialog);
|
||||
g_assert (GIMP_IS_COLORMAP_DIALOG(colormap_dialog));
|
||||
gtk_signal_connect((GtkObject*)colormap_dialog,
|
||||
"selected",
|
||||
(GtkSignalFunc)handler,
|
||||
user_data);
|
||||
}
|
||||
|
||||
void gimp_colormap_dialog_selected (
|
||||
GimpColormapDialog* colormap_dialog){
|
||||
g_assert (colormap_dialog);
|
||||
g_assert (GIMP_IS_COLORMAP_DIALOG(colormap_dialog));
|
||||
{
|
||||
gtk_signal_emitv((GtkObject*)colormap_dialog, _gimp_colormap_dialog_signal_selected, NULL);
|
||||
}
|
||||
}
|
||||
|
20
app/colormap_dialog.h
Normal file
20
app/colormap_dialog.h
Normal file
|
@ -0,0 +1,20 @@
|
|||
#ifndef _g_gimp_colormap_dialog_funcs
|
||||
#define _g_gimp_colormap_dialog_funcs
|
||||
#include <gtk/gtkdialog.h>
|
||||
#include <colormap_dialog.t.h>
|
||||
#include <gimpset.h>
|
||||
#include <gimpimage.h>
|
||||
#include <glib.h>
|
||||
GimpColormapDialog* gimp_colormap_dialog_create (
|
||||
GimpSet* context);
|
||||
GimpImage* gimp_colormap_dialog_image (
|
||||
const GimpColormapDialog* colormap_dialog);
|
||||
gint gimp_colormap_dialog_col_index (
|
||||
const GimpColormapDialog* colormap_dialog);
|
||||
typedef void (*GimpColormapDialogHandler_selected)(GimpColormapDialog*,
|
||||
gpointer);
|
||||
void gimp_colormap_dialog_connect_selected (
|
||||
GimpColormapDialogHandler_selected handler,
|
||||
gpointer user_data,
|
||||
GimpColormapDialog* colormap_dialog);
|
||||
#endif /* _g_gimp_colormap_dialog_funcs */
|
13
app/colormap_dialog.i.h
Normal file
13
app/colormap_dialog.i.h
Normal file
|
@ -0,0 +1,13 @@
|
|||
#ifndef _g_gimp_colormap_dialog_import
|
||||
#define _g_gimp_colormap_dialog_import
|
||||
#include <colormap_dialog.h>
|
||||
#define TYPE_COLORMAP_DIALOG GIMP_TYPE_COLORMAP_DIALOG
|
||||
#define ColormapDialog GimpColormapDialog
|
||||
#define IS_COLORMAP_DIALOG GIMP_IS_COLORMAP_DIALOG
|
||||
#define COLORMAP_DIALOG GIMP_COLORMAP_DIALOG
|
||||
#define colormap_dialog_create gimp_colormap_dialog_create
|
||||
#define colormap_dialog_image gimp_colormap_dialog_image
|
||||
#define colormap_dialog_col_index gimp_colormap_dialog_col_index
|
||||
#define colormap_dialog_connect_selected gimp_colormap_dialog_connect_selected
|
||||
#define colormap_dialog_selected gimp_colormap_dialog_selected
|
||||
#endif /* _g_gimp_colormap_dialog_import */
|
42
app/colormap_dialog.p.h
Normal file
42
app/colormap_dialog.p.h
Normal file
|
@ -0,0 +1,42 @@
|
|||
#ifndef _g_gimp_colormap_dialog_prot
|
||||
#define _g_gimp_colormap_dialog_prot
|
||||
#include <colormap_dialog.h>
|
||||
#include <gtk/gtkdialog.h>
|
||||
#include <gimpimage.h>
|
||||
#include <glib.h>
|
||||
#include <gtk/gtkwidget.h>
|
||||
#include <gtk/gtkpreview.h>
|
||||
#include <gtk/gtkoptionmenu.h>
|
||||
#include <gimpset.h>
|
||||
#include <gtk/gtkentry.h>
|
||||
#include <color_select.h>
|
||||
|
||||
|
||||
typedef struct _GimpColormapDialogClass GimpColormapDialogClass;
|
||||
struct _GimpColormapDialogClass {
|
||||
GtkDialogClass parent_class;
|
||||
void (*selected) (GimpColormapDialog*);
|
||||
};
|
||||
struct _GimpColormapDialog {
|
||||
GtkDialog parent;
|
||||
GimpImage* image;
|
||||
gint col_index;
|
||||
GtkWidget* vbox;
|
||||
GtkPreview* palette;
|
||||
GtkWidget* image_menu;
|
||||
GtkOptionMenu* option_menu;
|
||||
GimpSet* context;
|
||||
guint event_handler;
|
||||
gint xn;
|
||||
gint yn;
|
||||
gint cellsize;
|
||||
GtkEntry* index_entry;
|
||||
GtkEntry* color_entry;
|
||||
GimpSetHandlerId rename_handler;
|
||||
GimpSetHandlerId cmap_changed_handler;
|
||||
GtkWidget* add_item;
|
||||
ColorSelectP color_select;
|
||||
};
|
||||
void gimp_colormap_dialog_selected (
|
||||
GimpColormapDialog* colormap_dialog);
|
||||
#endif /* _g_gimp_colormap_dialog_prot */
|
13
app/colormap_dialog.t.h
Normal file
13
app/colormap_dialog.t.h
Normal file
|
@ -0,0 +1,13 @@
|
|||
#ifndef _g_gimp_colormap_dialog_type
|
||||
#define _g_gimp_colormap_dialog_type
|
||||
#include <gtk/gtktypeutils.h>
|
||||
|
||||
|
||||
#define GIMP_TYPE_COLORMAP_DIALOG \
|
||||
(_gimp_colormap_dialog_type ? (void)0 : _gimp_colormap_dialog_init_type (), _gimp_colormap_dialog_type)
|
||||
extern GtkType _gimp_colormap_dialog_type;
|
||||
void _gimp_colormap_dialog_init_type (void);
|
||||
typedef struct _GimpColormapDialog GimpColormapDialog;
|
||||
#define GIMP_IS_COLORMAP_DIALOG(o) GTK_CHECK_TYPE(o, GIMP_TYPE_COLORMAP_DIALOG)
|
||||
#define GIMP_COLORMAP_DIALOG(o) GTK_CHECK_CAST(o, GIMP_TYPE_COLORMAP_DIALOG, GimpColormapDialog)
|
||||
#endif /* _g_gimp_colormap_dialog_type */
|
109
app/gui/colormap-dialog.c
Normal file
109
app/gui/colormap-dialog.c
Normal file
|
@ -0,0 +1,109 @@
|
|||
#include <colormap_dialog.p.h>
|
||||
|
||||
GtkType _gimp_colormap_dialog_type;
|
||||
static void gimp_colormap_dialog_class_init (GimpColormapDialogClass* klass);
|
||||
static void gimp_colormap_dialog_init (GimpColormapDialog* colormap_dialog);
|
||||
static guint _gimp_colormap_dialog_signal_selected;
|
||||
static void _gimp_colormap_dialog_demarshall_0 (GtkObject*, GtkSignalFunc, gpointer, GtkArg*);
|
||||
typedef void (*_GimpColormapDialogHandler_0)(GtkObject*, gpointer);
|
||||
static void _gimp_colormap_dialog_demarshall_0 (
|
||||
GtkObject* object,
|
||||
GtkSignalFunc func,
|
||||
gpointer user_data,
|
||||
GtkArg* args){
|
||||
(void)args;
|
||||
((_GimpColormapDialogHandler_0)func)(object,
|
||||
user_data);
|
||||
}
|
||||
#ifdef GCG_IMPL
|
||||
# include GCG_IMPL
|
||||
#else
|
||||
# include "colormap_dialog.i.c"
|
||||
#endif
|
||||
|
||||
void _gimp_colormap_dialog_init_type (void){
|
||||
static GtkTypeInfo info = {
|
||||
"GimpColormapDialog",
|
||||
sizeof (GimpColormapDialog),
|
||||
sizeof (GimpColormapDialogClass),
|
||||
(GtkClassInitFunc) gimp_colormap_dialog_class_init,
|
||||
(GtkObjectInitFunc) gimp_colormap_dialog_init,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
};
|
||||
if (!_gimp_colormap_dialog_type)
|
||||
_gimp_colormap_dialog_type = gtk_type_unique (GTK_TYPE_DIALOG, &info);
|
||||
}
|
||||
|
||||
static void gimp_colormap_dialog_class_init (GimpColormapDialogClass* klass){
|
||||
GtkObjectClass* obklass = (GtkObjectClass*) klass;
|
||||
(void) obklass;
|
||||
_gimp_colormap_dialog_signal_selected =
|
||||
gtk_signal_new("selected",
|
||||
GTK_RUN_FIRST,
|
||||
obklass->type,
|
||||
GTK_SIGNAL_OFFSET (GimpColormapDialogClass, selected),
|
||||
_gimp_colormap_dialog_demarshall_0,
|
||||
GTK_TYPE_NONE,
|
||||
0);
|
||||
gtk_object_class_add_signals(obklass,
|
||||
&_gimp_colormap_dialog_signal_selected,
|
||||
1);
|
||||
#ifdef COLORMAP_DIALOG_CLASS_INIT
|
||||
COLORMAP_DIALOG_CLASS_INIT (klass);
|
||||
#endif
|
||||
}
|
||||
|
||||
static void gimp_colormap_dialog_init (GimpColormapDialog* colormap_dialog){
|
||||
(void) colormap_dialog;
|
||||
#ifdef COLORMAP_DIALOG_INIT
|
||||
COLORMAP_DIALOG_INIT (colormap_dialog);
|
||||
#endif
|
||||
}
|
||||
|
||||
GimpColormapDialog* gimp_colormap_dialog_create (
|
||||
GimpSet* context){
|
||||
g_assert (!context || GIMP_IS_SET(context));
|
||||
#ifdef COLORMAP_DIALOG_CREATE
|
||||
return COLORMAP_DIALOG_CREATE (context);
|
||||
#else
|
||||
g_error("Not implemented: Gimp.ColormapDialog.create");
|
||||
#endif
|
||||
}
|
||||
|
||||
GimpImage* gimp_colormap_dialog_image (
|
||||
const GimpColormapDialog* colormap_dialog){
|
||||
g_assert (colormap_dialog);
|
||||
g_assert (GIMP_IS_COLORMAP_DIALOG(colormap_dialog));
|
||||
return colormap_dialog->image;
|
||||
}
|
||||
|
||||
gint gimp_colormap_dialog_col_index (
|
||||
const GimpColormapDialog* colormap_dialog){
|
||||
g_assert (colormap_dialog);
|
||||
g_assert (GIMP_IS_COLORMAP_DIALOG(colormap_dialog));
|
||||
return colormap_dialog->col_index;
|
||||
}
|
||||
|
||||
void gimp_colormap_dialog_connect_selected (
|
||||
GimpColormapDialogHandler_selected handler,
|
||||
gpointer user_data,
|
||||
GimpColormapDialog* colormap_dialog){
|
||||
g_assert (colormap_dialog);
|
||||
g_assert (GIMP_IS_COLORMAP_DIALOG(colormap_dialog));
|
||||
gtk_signal_connect((GtkObject*)colormap_dialog,
|
||||
"selected",
|
||||
(GtkSignalFunc)handler,
|
||||
user_data);
|
||||
}
|
||||
|
||||
void gimp_colormap_dialog_selected (
|
||||
GimpColormapDialog* colormap_dialog){
|
||||
g_assert (colormap_dialog);
|
||||
g_assert (GIMP_IS_COLORMAP_DIALOG(colormap_dialog));
|
||||
{
|
||||
gtk_signal_emitv((GtkObject*)colormap_dialog, _gimp_colormap_dialog_signal_selected, NULL);
|
||||
}
|
||||
}
|
||||
|
20
app/gui/colormap-dialog.h
Normal file
20
app/gui/colormap-dialog.h
Normal file
|
@ -0,0 +1,20 @@
|
|||
#ifndef _g_gimp_colormap_dialog_funcs
|
||||
#define _g_gimp_colormap_dialog_funcs
|
||||
#include <gtk/gtkdialog.h>
|
||||
#include <colormap_dialog.t.h>
|
||||
#include <gimpset.h>
|
||||
#include <gimpimage.h>
|
||||
#include <glib.h>
|
||||
GimpColormapDialog* gimp_colormap_dialog_create (
|
||||
GimpSet* context);
|
||||
GimpImage* gimp_colormap_dialog_image (
|
||||
const GimpColormapDialog* colormap_dialog);
|
||||
gint gimp_colormap_dialog_col_index (
|
||||
const GimpColormapDialog* colormap_dialog);
|
||||
typedef void (*GimpColormapDialogHandler_selected)(GimpColormapDialog*,
|
||||
gpointer);
|
||||
void gimp_colormap_dialog_connect_selected (
|
||||
GimpColormapDialogHandler_selected handler,
|
||||
gpointer user_data,
|
||||
GimpColormapDialog* colormap_dialog);
|
||||
#endif /* _g_gimp_colormap_dialog_funcs */
|
109
app/widgets/gimpcolormapeditor.c
Normal file
109
app/widgets/gimpcolormapeditor.c
Normal file
|
@ -0,0 +1,109 @@
|
|||
#include <colormap_dialog.p.h>
|
||||
|
||||
GtkType _gimp_colormap_dialog_type;
|
||||
static void gimp_colormap_dialog_class_init (GimpColormapDialogClass* klass);
|
||||
static void gimp_colormap_dialog_init (GimpColormapDialog* colormap_dialog);
|
||||
static guint _gimp_colormap_dialog_signal_selected;
|
||||
static void _gimp_colormap_dialog_demarshall_0 (GtkObject*, GtkSignalFunc, gpointer, GtkArg*);
|
||||
typedef void (*_GimpColormapDialogHandler_0)(GtkObject*, gpointer);
|
||||
static void _gimp_colormap_dialog_demarshall_0 (
|
||||
GtkObject* object,
|
||||
GtkSignalFunc func,
|
||||
gpointer user_data,
|
||||
GtkArg* args){
|
||||
(void)args;
|
||||
((_GimpColormapDialogHandler_0)func)(object,
|
||||
user_data);
|
||||
}
|
||||
#ifdef GCG_IMPL
|
||||
# include GCG_IMPL
|
||||
#else
|
||||
# include "colormap_dialog.i.c"
|
||||
#endif
|
||||
|
||||
void _gimp_colormap_dialog_init_type (void){
|
||||
static GtkTypeInfo info = {
|
||||
"GimpColormapDialog",
|
||||
sizeof (GimpColormapDialog),
|
||||
sizeof (GimpColormapDialogClass),
|
||||
(GtkClassInitFunc) gimp_colormap_dialog_class_init,
|
||||
(GtkObjectInitFunc) gimp_colormap_dialog_init,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
};
|
||||
if (!_gimp_colormap_dialog_type)
|
||||
_gimp_colormap_dialog_type = gtk_type_unique (GTK_TYPE_DIALOG, &info);
|
||||
}
|
||||
|
||||
static void gimp_colormap_dialog_class_init (GimpColormapDialogClass* klass){
|
||||
GtkObjectClass* obklass = (GtkObjectClass*) klass;
|
||||
(void) obklass;
|
||||
_gimp_colormap_dialog_signal_selected =
|
||||
gtk_signal_new("selected",
|
||||
GTK_RUN_FIRST,
|
||||
obklass->type,
|
||||
GTK_SIGNAL_OFFSET (GimpColormapDialogClass, selected),
|
||||
_gimp_colormap_dialog_demarshall_0,
|
||||
GTK_TYPE_NONE,
|
||||
0);
|
||||
gtk_object_class_add_signals(obklass,
|
||||
&_gimp_colormap_dialog_signal_selected,
|
||||
1);
|
||||
#ifdef COLORMAP_DIALOG_CLASS_INIT
|
||||
COLORMAP_DIALOG_CLASS_INIT (klass);
|
||||
#endif
|
||||
}
|
||||
|
||||
static void gimp_colormap_dialog_init (GimpColormapDialog* colormap_dialog){
|
||||
(void) colormap_dialog;
|
||||
#ifdef COLORMAP_DIALOG_INIT
|
||||
COLORMAP_DIALOG_INIT (colormap_dialog);
|
||||
#endif
|
||||
}
|
||||
|
||||
GimpColormapDialog* gimp_colormap_dialog_create (
|
||||
GimpSet* context){
|
||||
g_assert (!context || GIMP_IS_SET(context));
|
||||
#ifdef COLORMAP_DIALOG_CREATE
|
||||
return COLORMAP_DIALOG_CREATE (context);
|
||||
#else
|
||||
g_error("Not implemented: Gimp.ColormapDialog.create");
|
||||
#endif
|
||||
}
|
||||
|
||||
GimpImage* gimp_colormap_dialog_image (
|
||||
const GimpColormapDialog* colormap_dialog){
|
||||
g_assert (colormap_dialog);
|
||||
g_assert (GIMP_IS_COLORMAP_DIALOG(colormap_dialog));
|
||||
return colormap_dialog->image;
|
||||
}
|
||||
|
||||
gint gimp_colormap_dialog_col_index (
|
||||
const GimpColormapDialog* colormap_dialog){
|
||||
g_assert (colormap_dialog);
|
||||
g_assert (GIMP_IS_COLORMAP_DIALOG(colormap_dialog));
|
||||
return colormap_dialog->col_index;
|
||||
}
|
||||
|
||||
void gimp_colormap_dialog_connect_selected (
|
||||
GimpColormapDialogHandler_selected handler,
|
||||
gpointer user_data,
|
||||
GimpColormapDialog* colormap_dialog){
|
||||
g_assert (colormap_dialog);
|
||||
g_assert (GIMP_IS_COLORMAP_DIALOG(colormap_dialog));
|
||||
gtk_signal_connect((GtkObject*)colormap_dialog,
|
||||
"selected",
|
||||
(GtkSignalFunc)handler,
|
||||
user_data);
|
||||
}
|
||||
|
||||
void gimp_colormap_dialog_selected (
|
||||
GimpColormapDialog* colormap_dialog){
|
||||
g_assert (colormap_dialog);
|
||||
g_assert (GIMP_IS_COLORMAP_DIALOG(colormap_dialog));
|
||||
{
|
||||
gtk_signal_emitv((GtkObject*)colormap_dialog, _gimp_colormap_dialog_signal_selected, NULL);
|
||||
}
|
||||
}
|
||||
|
20
app/widgets/gimpcolormapeditor.h
Normal file
20
app/widgets/gimpcolormapeditor.h
Normal file
|
@ -0,0 +1,20 @@
|
|||
#ifndef _g_gimp_colormap_dialog_funcs
|
||||
#define _g_gimp_colormap_dialog_funcs
|
||||
#include <gtk/gtkdialog.h>
|
||||
#include <colormap_dialog.t.h>
|
||||
#include <gimpset.h>
|
||||
#include <gimpimage.h>
|
||||
#include <glib.h>
|
||||
GimpColormapDialog* gimp_colormap_dialog_create (
|
||||
GimpSet* context);
|
||||
GimpImage* gimp_colormap_dialog_image (
|
||||
const GimpColormapDialog* colormap_dialog);
|
||||
gint gimp_colormap_dialog_col_index (
|
||||
const GimpColormapDialog* colormap_dialog);
|
||||
typedef void (*GimpColormapDialogHandler_selected)(GimpColormapDialog*,
|
||||
gpointer);
|
||||
void gimp_colormap_dialog_connect_selected (
|
||||
GimpColormapDialogHandler_selected handler,
|
||||
gpointer user_data,
|
||||
GimpColormapDialog* colormap_dialog);
|
||||
#endif /* _g_gimp_colormap_dialog_funcs */
|
|
@ -72,9 +72,9 @@ echo "Running gettextize... Ignore non-fatal messages."
|
|||
echo "no" | gettextize --copy --force
|
||||
|
||||
autogen_dirs="."
|
||||
if test -z "$NO_GCG"; then
|
||||
autogen_dirs="$autogen_dirs tools/gcg"
|
||||
fi
|
||||
#if test -z "$NO_GCG"; then
|
||||
# autogen_dirs="$autogen_dirs tools/gcg"
|
||||
#fi
|
||||
|
||||
for i in $autogen_dirs; do
|
||||
echo "Processing $i..."
|
||||
|
|
50
configure.in
50
configure.in
|
@ -4,7 +4,7 @@ AC_INIT(gimprc.in)
|
|||
dnl Initialize automake stuff
|
||||
GIMP_MAJOR_VERSION=1
|
||||
GIMP_MINOR_VERSION=1
|
||||
GIMP_MICRO_VERSION=8
|
||||
GIMP_MICRO_VERSION=9
|
||||
GIMP_INTERFACE_AGE=0
|
||||
GIMP_BINARY_AGE=0
|
||||
GIMP_VERSION=$GIMP_MAJOR_VERSION.$GIMP_MINOR_VERSION.$GIMP_MICRO_VERSION
|
||||
|
@ -49,29 +49,29 @@ ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
|
|||
|
||||
dnl Why the heck isn't there already a macro for this?
|
||||
|
||||
AC_ARG_WITH(gnu-make, [ --with-gnu-make assume 'make' understands gnu extensions],
|
||||
,
|
||||
if $ac_make -v 2>/dev/null | grep 'GNU Make' >/dev/null; then
|
||||
with_gnu_make=yes
|
||||
fi)
|
||||
|
||||
AC_ARG_WITH(gcg, [ --with-gcg build 'gcg' code generation tool],
|
||||
,
|
||||
with_gcg=$enable_maintainer_mode)
|
||||
|
||||
if test "x$with_gcg" = xyes; then
|
||||
AC_CONFIG_SUBDIRS(tools/gcg)
|
||||
fi
|
||||
|
||||
AC_ARG_ENABLE(gcg-deps, [ --enable-gcg-deps turn on dynamic gcg dependency tracking (need gcc and gnu make)],
|
||||
,
|
||||
if eval "test x$GCC$with_gnu_make$with_gcg = xyesyesyes"; then
|
||||
enable_gcg_deps=yes
|
||||
fi)
|
||||
|
||||
AM_CONDITIONAL(WITH_GCG, test x$with_gcg = xyes)
|
||||
AM_CONDITIONAL(WITH_GNU_MAKE, test x$with_gnu_make = xyes)
|
||||
AM_CONDITIONAL(ENABLE_GCG_DEPS, test x$enable_gcg_deps = xyes)
|
||||
dnl AC_ARG_WITH(gnu-make, [ --with-gnu-make assume 'make' understands gnu extensions],
|
||||
dnl,
|
||||
dnl if $ac_make -v 2>/dev/null | grep 'GNU Make' >/dev/null; then
|
||||
dnl with_gnu_make=yes
|
||||
dnl fi)
|
||||
dnl
|
||||
dnl AC_ARG_WITH(gcg, [ --with-gcg build 'gcg' code generation tool],
|
||||
dnl,
|
||||
dnl with_gcg=$enable_maintainer_mode)
|
||||
dnl
|
||||
dnl if test "x$with_gcg" = xyes; then
|
||||
dnl AC_CONFIG_SUBDIRS(tools/gcg)
|
||||
dnl fi
|
||||
dnl
|
||||
dnl AC_ARG_ENABLE(gcg-deps, [ --enable-gcg-deps turn on dynamic gcg dependency tracking (need gcc and gnu make)],
|
||||
dnl ,
|
||||
dnl if eval "test x$GCC$with_gnu_make$with_gcg = xyesyesyes"; then
|
||||
dnl enable_gcg_deps=yes
|
||||
dnl fi)
|
||||
dnl
|
||||
dnl AM_CONDITIONAL(WITH_GCG, test x$with_gcg = xyes)
|
||||
dnl AM_CONDITIONAL(WITH_GNU_MAKE, test x$with_gnu_make = xyes)
|
||||
dnl AM_CONDITIONAL(ENABLE_GCG_DEPS, test x$enable_gcg_deps = xyes)
|
||||
|
||||
AC_ARG_ENABLE(ansi, [ --enable-ansi turn on strict ansi [default=no]],
|
||||
, enable_ansi=no)
|
||||
|
@ -95,7 +95,7 @@ ALL_LINGUAS="fr sv ja it fi ko de hu nl pl ru no cs"
|
|||
AM_GNU_GETTEXT
|
||||
|
||||
dnl Check for GTK+
|
||||
AM_PATH_GTK(1.2.0,,
|
||||
AM_PATH_GTK(1.2.3,,
|
||||
AC_MSG_ERROR(Test for GTK failed. See the file 'INSTALL' for help.))
|
||||
|
||||
changequote(,)dnl
|
||||
|
|
|
@ -148,6 +148,15 @@ package Gimp::CodeGen::enums;
|
|||
LOOP_TRIANGLE => '3',
|
||||
ONCE_END_COLOR => '4' }
|
||||
},
|
||||
InterpolationType =>
|
||||
{ contig => 1,
|
||||
header => 'apptypes.h',
|
||||
symbols => [ qw(LINEAR_INTERPOLATION CUBIC_INTERPOLATION
|
||||
NEAREST_NEIGHBOR_INTERPOLATION) ],
|
||||
mapping => { LINEAR_INTERPOLATION => '0',
|
||||
CUBIC_INTERPOLATION => '1',
|
||||
NEAREST_NEIGHBOR_INTERPOLATION => '2' }
|
||||
},
|
||||
GradientType =>
|
||||
{ contig => 1,
|
||||
header => 'blend.h',
|
||||
|
|
Loading…
Reference in a new issue