Fix for #102303 + lots of code clean-up

This commit is contained in:
Maurits Rijk
2003-01-02 20:35:33 +00:00
parent cb9d0cc2b8
commit a73614b650
68 changed files with 225 additions and 1340 deletions

View File

@ -3,7 +3,7 @@
*
* Generates clickable image maps.
*
* Copyright (C) 1998-1999 Maurits Rijk lpeek.mrijk@consunet.nl
* Copyright (C) 1998-2003 Maurits Rijk lpeek.mrijk@consunet.nl
*
* 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
@ -25,22 +25,17 @@
#include <gtk/gtk.h>
#include "imap_cmd_create.h"
#include "imap_cmd_delete.h"
#include "imap_cmd_send_to_back.h"
#include "imap_main.h"
#include "imap_commands.h"
#include "libgimp/stdplugins-intl.h"
static CmdExecuteValue_t send_to_back_command_execute(Command_t *parent);
static void send_to_back_command_undo(Command_t *parent);
static void send_to_back_command_redo(Command_t *parent);
static CommandClass_t send_to_back_command_class = {
NULL, /* send_to_back_command_destruct, */
send_to_back_command_execute,
send_to_back_command_undo,
send_to_back_command_redo
NULL, /* send_to_back_command_undo */
NULL /* send_to_back_command_redo */
};
typedef struct {
@ -83,20 +78,7 @@ send_to_back_command_execute(Command_t *parent)
id2 = object_list_add_add_cb(command->list, add_one_object, command);
object_list_send_to_back(command->list);
redraw_preview(); /* Fix me! */
object_list_remove_remove_cb(command->list, id1);
object_list_remove_add_cb(command->list, id2);
return CMD_APPEND;
}
static void
send_to_back_command_undo(Command_t *command)
{
redraw_preview(); /* Fix me! */
}
static void
send_to_back_command_redo(Command_t *command)
{
redraw_preview(); /* Fix me! */
}