• Michael Natterer's avatar
    added new signal "buffer_changed" and new function · 513f5eac
    Michael Natterer authored
    2004-02-19  Michael Natterer  <mitch@gimp.org>
    
    	* app/core/gimp.[ch]: added new signal "buffer_changed" and new
    	function gimp_set_global_buffer() which emits it when the global
    	buffer changes.
    
    	* app/core/gimp-edit.c (gimp_edit_extract): use it instead
    	of fiddling with gimp->global_buffer manually.
    
    	* app/gui/image-menu.c: connect to "buffer_changed" and set the
    	"Paste" menu entries sensitive. Fixes bug #134752.
    
    	(image_menu_update): changed accordingly. Also changed a lot of
    	buggy SET_SENSITIVE() lines which made menu items which work fine
    	on any drawable insensitive when there were no layers (instead
    	of no drawable).
    
    	* app/gui/edit-commands.c: added new macro return_if_new_drawable()
    	and use it instead of return_if_no_image() so we don't run
    	into assertions if there is no active drawable.
    
    	(cut,copy_named_buffer_callback): unfortunately had to introduce
    	two new translated messages about not being able to cut/copy when
    	there is no active drawable.
    513f5eac
Name
Last commit
Last update
..
actions Loading commit data...
base Loading commit data...
composite Loading commit data...
config Loading commit data...
core Loading commit data...
dialogs Loading commit data...
display Loading commit data...
file Loading commit data...
gui Loading commit data...
menus Loading commit data...
paint Loading commit data...
paint-funcs Loading commit data...
pdb Loading commit data...
plug-in Loading commit data...
text Loading commit data...
tools Loading commit data...
vectors Loading commit data...
widgets Loading commit data...
xcf Loading commit data...
.cvsignore Loading commit data...
Makefile.am Loading commit data...
airbrush.c Loading commit data...
app_procs.c Loading commit data...
app_procs.h Loading commit data...
batch.c Loading commit data...
batch.h Loading commit data...
errors.c Loading commit data...
errors.h Loading commit data...
gimp-intl.h Loading commit data...
gimp.rc Loading commit data...
main.c Loading commit data...
makefile.msc Loading commit data...
paint_core.h Loading commit data...
paint_options.h Loading commit data...
plug_in_cmds.c Loading commit data...
transform_core.c Loading commit data...
units.c Loading commit data...
units.h Loading commit data...
wilber.ico Loading commit data...