color dnd for the standard color selection widget (the "GIMP" color

1999-08-24  Michael Natterer  <mitschel@cs.tu-berlin.de>

	* app/color_select.[ch]: color dnd for the standard color
	selection widget (the "GIMP" color notebook page).
This commit is contained in:
Michael Natterer 1999-08-23 23:05:46 +00:00 committed by Michael Natterer
parent 487642b0f9
commit 90178ccb3a
6 changed files with 1288 additions and 862 deletions

View File

@ -1,3 +1,8 @@
1999-08-24 Michael Natterer <mitschel@cs.tu-berlin.de>
* app/color_select.[ch]: color dnd for the standard color
selection widget (the "GIMP" color notebook page).
Mon Aug 23 23:25:05 BST 1999 Andy Thomas <alt@gimp.org>
* app/menus.c

File diff suppressed because it is too large Load Diff

View File

@ -18,42 +18,53 @@
#ifndef __COLOR_SELECT_H__
#define __COLOR_SELECT_H__
typedef enum {
typedef enum
{
COLOR_SELECT_OK,
COLOR_SELECT_CANCEL,
COLOR_SELECT_UPDATE
} ColorSelectState;
typedef struct _ColorSelect _ColorSelect, *ColorSelectP;
typedef void (*ColorSelectCallback) (int, int, int, ColorSelectState, void *);
typedef void (*ColorSelectCallback) (gint, gint, gint, ColorSelectState, void *);
struct _ColorSelect {
GtkWidget *shell;
GtkWidget *xy_color;
GtkWidget *z_color;
GtkWidget *new_color;
GtkWidget *orig_color;
GtkWidget *toggles[6];
GtkWidget *entries[6];
GtkWidget *hex_entry;
typedef struct _ColorSelect ColorSelect, *ColorSelectP;
struct _ColorSelect
{
GtkWidget *shell;
GtkWidget *xy_color;
GtkWidget *z_color;
GtkWidget *new_color;
GtkWidget *orig_color;
GtkWidget *toggles[6];
GtkWidget *entries[6];
GtkWidget *hex_entry;
GtkAdjustment *slider_data[6];
int pos[3];
int values[6];
int z_color_fill;
int xy_color_fill;
int orig_values[3];
ColorSelectCallback callback;
void *client_data;
int wants_updates;
GdkGC *gc;
gint pos[3];
gint values[6];
gint z_color_fill;
gint xy_color_fill;
gint orig_values[3];
gboolean wants_updates;
GdkGC *gc;
ColorSelectCallback callback;
void *client_data;
};
void color_select_init (void);
ColorSelectP color_select_new (int, int, int, ColorSelectCallback, void *, int);
void color_select_show (ColorSelectP);
void color_select_hide (ColorSelectP);
void color_select_free (ColorSelectP);
void color_select_set_color (ColorSelectP, int, int, int, int);
ColorSelectP color_select_new (gint r,
gint g,
gint b,
ColorSelectCallback callback,
gpointer client_data,
gboolean wants_update);
void color_select_show (ColorSelectP);
void color_select_hide (ColorSelectP);
void color_select_free (ColorSelectP);
void color_select_set_color (ColorSelectP,
gint, gint, gint, gint);
#endif /* __COLOR_SELECT_H__ */

File diff suppressed because it is too large Load Diff

View File

@ -18,42 +18,53 @@
#ifndef __COLOR_SELECT_H__
#define __COLOR_SELECT_H__
typedef enum {
typedef enum
{
COLOR_SELECT_OK,
COLOR_SELECT_CANCEL,
COLOR_SELECT_UPDATE
} ColorSelectState;
typedef struct _ColorSelect _ColorSelect, *ColorSelectP;
typedef void (*ColorSelectCallback) (int, int, int, ColorSelectState, void *);
typedef void (*ColorSelectCallback) (gint, gint, gint, ColorSelectState, void *);
struct _ColorSelect {
GtkWidget *shell;
GtkWidget *xy_color;
GtkWidget *z_color;
GtkWidget *new_color;
GtkWidget *orig_color;
GtkWidget *toggles[6];
GtkWidget *entries[6];
GtkWidget *hex_entry;
typedef struct _ColorSelect ColorSelect, *ColorSelectP;
struct _ColorSelect
{
GtkWidget *shell;
GtkWidget *xy_color;
GtkWidget *z_color;
GtkWidget *new_color;
GtkWidget *orig_color;
GtkWidget *toggles[6];
GtkWidget *entries[6];
GtkWidget *hex_entry;
GtkAdjustment *slider_data[6];
int pos[3];
int values[6];
int z_color_fill;
int xy_color_fill;
int orig_values[3];
ColorSelectCallback callback;
void *client_data;
int wants_updates;
GdkGC *gc;
gint pos[3];
gint values[6];
gint z_color_fill;
gint xy_color_fill;
gint orig_values[3];
gboolean wants_updates;
GdkGC *gc;
ColorSelectCallback callback;
void *client_data;
};
void color_select_init (void);
ColorSelectP color_select_new (int, int, int, ColorSelectCallback, void *, int);
void color_select_show (ColorSelectP);
void color_select_hide (ColorSelectP);
void color_select_free (ColorSelectP);
void color_select_set_color (ColorSelectP, int, int, int, int);
ColorSelectP color_select_new (gint r,
gint g,
gint b,
ColorSelectCallback callback,
gpointer client_data,
gboolean wants_update);
void color_select_show (ColorSelectP);
void color_select_hide (ColorSelectP);
void color_select_free (ColorSelectP);
void color_select_set_color (ColorSelectP,
gint, gint, gint, gint);
#endif /* __COLOR_SELECT_H__ */

File diff suppressed because it is too large Load Diff