• 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
app Loading commit data...
cursors Loading commit data...
data Loading commit data...
devel-docs Loading commit data...
docs Loading commit data...
etc Loading commit data...
libgimp Loading commit data...
libgimpbase Loading commit data...
libgimpcolor Loading commit data...
libgimpconfig Loading commit data...
libgimpmath Loading commit data...
libgimpmodule Loading commit data...
libgimpthumb Loading commit data...
libgimpwidgets Loading commit data...
m4macros Loading commit data...
modules Loading commit data...
plug-ins Loading commit data...
po Loading commit data...
po-libgimp Loading commit data...
po-plug-ins Loading commit data...
po-script-fu Loading commit data...
regexrepl Loading commit data...
themes Loading commit data...
tips Loading commit data...
tools Loading commit data...
.cvsignore Loading commit data...
AUTHORS Loading commit data...
COPYING Loading commit data...
ChangeLog Loading commit data...
ChangeLog.pre-1-0 Loading commit data...
ChangeLog.pre-1-2 Loading commit data...
HACKING Loading commit data...
INSTALL Loading commit data...
LICENSE Loading commit data...
MAINTAINERS Loading commit data...
Makefile.am Loading commit data...
NEWS Loading commit data...
PLUGIN_MAINTAINERS Loading commit data...
README Loading commit data...
README.i18n Loading commit data...
README.win32 Loading commit data...
TODO.xml Loading commit data...
acinclude.m4 Loading commit data...
autogen.sh Loading commit data...
config.h.in Loading commit data...
config.h.win32 Loading commit data...
configure.in Loading commit data...
gimp-zip.in Loading commit data...
gimp.pc.in Loading commit data...
gimp.spec.in Loading commit data...
gimpdefs.msc Loading commit data...
gimpthumb.pc.in Loading commit data...
gimptool-2.0.in Loading commit data...
gimptool-win32.c.in Loading commit data...
gimpui.pc.in Loading commit data...
makefile.msc Loading commit data...