2002-11-21 Michael Natterer <mitch@gimp.org> * app/base/tile-cache.[ch]: added tile_cache_init() and tile_cache_exit() as public functions. * app/base/base.c: call them. Connect to GimpBaseConfig's notify::tile-cache-size. * app/core/gimpimage.c: connect to notify::transparency-type and notify::transparency-size and call gimp_image_invalidate_layer_previews() in the callback. * app/display/gimpdisplay-foreach.[ch]: removed gdisplays_expose_full(). * app/display/gimpdisplayshell-handlers.c: connect to notify::transparency-type and notify::transparency-size and expose the shell in the callback. * app/display/gimpdisplayshell-render.[ch]: added render_init() and render_exit() functions and connect to notify::transparency-type and notify::transparency-size for setting up the render buffers. * app/gui/gui.c: call the new functions instead of render_setup(). Connect to notify::show-tool-tips. * app/gui/preferences-dialog.c: copy values between the global config object and its local clone only when they have changed. Wrap setting of lots of values in g_object_[freeze|thaw]_notify(). Added lots of mnemonics. * app/gui/resolution-calibrate-dialog.c: added mnemonics. * app/widgets/gimppropwidgets.c: g_object_set() the values edited by the gimp_prop_coordinates() much less often by remembering the old values and setting them only when they have changed.
46 lines
1.6 KiB
C
46 lines
1.6 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 __GIMP_DISPLAY_SHELL_RENDER_H__
|
|
#define __GIMP_DISPLAY_SHELL_RENDER_H__
|
|
|
|
|
|
#define GIMP_DISPLAY_SHELL_RENDER_BUF_WIDTH 256
|
|
#define GIMP_DISPLAY_SHELL_RENDER_BUF_HEIGHT 256
|
|
|
|
|
|
void render_init (Gimp *gimp);
|
|
void render_exit (Gimp *gimp);
|
|
|
|
void gimp_display_shell_render (GimpDisplayShell *shell,
|
|
gint x,
|
|
gint y,
|
|
gint w,
|
|
gint h);
|
|
|
|
/*
|
|
* Extern variables
|
|
*/
|
|
extern guchar *render_check_buf;
|
|
extern guchar *render_empty_buf;
|
|
extern guchar *render_temp_buf;
|
|
extern guchar *render_blend_dark_check;
|
|
extern guchar *render_blend_light_check;
|
|
|
|
|
|
#endif /* __GIMP_DISPLAY_SHELL_RENDER_H__ */
|