mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-24 08:23:04 +00:00
9b9f3d1066
1999-07-24 Michael Natterer <mitschel@cs.tu-berlin.de> * app/color_picker.[ch]: set the "preserve" flag to FALSE. This way the tool doesn't have to detect drawable changes by itself. Misc stuff like below. * app/gradient.c: heavily changed the beast: - Reviewed the whole ui code and indented it. - Standard ui for all sub-dialogs. - Handle the wm delete event of the sub-dialogs. - "+" and "-" pixmaps instead of "zoom in" and "zoom out". - Made the gradient preview resizable again. - i18n fixes. - Removed some code duplication in the sub-dialogs' cancel/delete callbacks. - Grouped functions together and commented the groups and their prototypes. - Didn't change any core functionality (just the ui). - Please don't kill me, but I couldn't resist to indent most functions ;-) * app/info_dialog.c: no need to call gettext() on a string which was passed to a function (it's the job of the caller). * app/ink.c: grab the pointer in the blob preview. * app/palette.c: standardized the ui of the dialog and all it's sub-dialogs, function header indentation, namespace cleanup.
40 lines
1.4 KiB
C
40 lines
1.4 KiB
C
/* The GIMP -- an image manipulation program
|
|
* Copyright (C) 1995 Spencer Kimball and Peter Mattis
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program 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 General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program; if not, write to the Free Software
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
*/
|
|
#ifndef __COLOR_PICKER_H__
|
|
#define __COLOR_PICKER_H__
|
|
|
|
#include "gimpimageF.h"
|
|
#include "gimpdrawableF.h"
|
|
#include "tools.h"
|
|
|
|
gboolean pick_color (GimpImage *gimage,
|
|
GimpDrawable *drawable,
|
|
gint x,
|
|
gint y,
|
|
gboolean sample_merged,
|
|
gboolean sample_average,
|
|
double average_radius,
|
|
gint final);
|
|
|
|
Tool * tools_new_color_picker (void);
|
|
void tools_free_color_picker (Tool *tool);
|
|
|
|
extern gint col_value[5];
|
|
|
|
#endif /* __COLOR_PICKER_H__ */
|