
2000-04-19 Michael Natterer <mitch@gimp.org> * app/bucket_fill.c * app/by_color_select.c * app/fuzzy_select.c * app/preferences_dialog.c: made the "default_threshold" gimprc variable work as advertized: - initialize the thresholds with it. - use it for "Reset". - added a widget to the "Tool Options" preferences page. - noticed that the "Reset" button of "By Color Select" doesn't behave like all the other "Reset" buttons and changed it to reset the ui, not the selection. (There is now a "None" button and because it was so trivial, I couldn't resist to add "All" and "Invert" buttons, too) * libgimp/Makefile.am * libgimp/gimpui.c: new file. * libgimp/gimpui.h: new function gimp_ui_init() which will be called by all plugins which have a ui (not only by those with a preview because plugins should always follow gimp's colormap installation policy). Could someone please check if the FIXME stuff in the function is the right thing to do (TM). Does GdkRGB allocate the correct colors for the widgets in all cases or do we have to find another way to ensure this across processes (gtk instances)?
42 lines
1.3 KiB
C
42 lines
1.3 KiB
C
/* LIBGIMP - The GIMP Library
|
|
* Copyright (C) 1995-1997 Peter Mattis and Spencer Kimball
|
|
*
|
|
* This library is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
* License as published by the Free Software Foundation; either
|
|
* version 2 of the License, or (at your option) any later version.
|
|
*
|
|
* 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
|
|
* Lesser General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
* License along with this library; if not, write to the
|
|
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
* Boston, MA 02111-1307, USA.
|
|
*/
|
|
#ifndef __GIMP_UI_H__
|
|
#define __GIMP_UI_H__
|
|
|
|
#include <gtk/gtk.h>
|
|
|
|
#include "gimpchainbutton.h"
|
|
#include "gimpcolorbutton.h"
|
|
#include "gimpdialog.h"
|
|
#include "gimpexport.h"
|
|
#include "gimpfileselection.h"
|
|
#include "gimphelpui.h"
|
|
#include "gimpmenu.h"
|
|
#include "gimppatheditor.h"
|
|
#include "gimppixmap.h"
|
|
#include "gimpquerybox.h"
|
|
#include "gimpsizeentry.h"
|
|
#include "gimpunitmenu.h"
|
|
#include "gimpwidgets.h"
|
|
|
|
void gimp_ui_init (gchar *prog_name,
|
|
gboolean preview);
|
|
|
|
#endif /* __GIMP_UI_H__ */
|