[gimp] plug-ins: imagemap, don't run execute for sash when redoing
- From: Mikael Magnusson <mikachu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] plug-ins: imagemap, don't run execute for sash when redoing
- Date: Wed, 23 Feb 2011 12:18:07 +0000 (UTC)
commit cc3f1e8a24a372a66a5c66e7852c82378ac1c64e
Author: Mikael Magnusson <mikachu src gnome org>
Date: Wed Feb 23 12:55:27 2011 +0100
plug-ins: imagemap, don't run execute for sash when redoing
It adds event handlers expecting the mouse button to be down, but it
isn't, so everything broke.
plug-ins/imagemap/imap_cmd_move_sash.c | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/plug-ins/imagemap/imap_cmd_move_sash.c b/plug-ins/imagemap/imap_cmd_move_sash.c
index b9ce0e0..7cc3595 100644
--- a/plug-ins/imagemap/imap_cmd_move_sash.c
+++ b/plug-ins/imagemap/imap_cmd_move_sash.c
@@ -31,12 +31,13 @@
static void move_sash_command_destruct(Command_t *command);
static CmdExecuteValue_t move_sash_command_execute(Command_t *command);
+static void move_sash_command_redo(Command_t *command);
static CommandClass_t move_sash_command_class = {
move_sash_command_destruct,
move_sash_command_execute,
NULL /*undo*/,
- NULL /*redo*/
+ move_sash_command_redo
};
typedef struct {
@@ -142,3 +143,8 @@ move_sash_command_execute(Command_t *parent)
return CMD_APPEND;
}
+
+static void move_sash_command_redo(Command_t *command)
+{
+ /* do nothing, but avoid running execute again which will break event handling */
+}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]