updated the imagemap plug-in
--Sven
This commit is contained in:
@ -22,11 +22,11 @@
|
||||
*/
|
||||
|
||||
#include "imap_cmd_delete.h"
|
||||
|
||||
#include "libgimp/stdplugins-intl.h"
|
||||
#include "imap_main.h"
|
||||
|
||||
static void delete_command_destruct(Command_t *parent);
|
||||
static gboolean delete_command_execute(Command_t *parent);
|
||||
static CmdExecuteValue_t delete_command_execute(Command_t *parent);
|
||||
static void delete_command_undo(Command_t *parent);
|
||||
|
||||
static CommandClass_t delete_command_class = {
|
||||
@ -50,7 +50,7 @@ delete_command_new(ObjectList_t *list, Object_t *obj)
|
||||
DeleteCommand_t *command = g_new(DeleteCommand_t, 1);
|
||||
command->list = list;
|
||||
command->obj = object_ref(obj);
|
||||
return command_init(&command->parent, "Delete",
|
||||
return command_init(&command->parent, _("Delete"),
|
||||
&delete_command_class);
|
||||
}
|
||||
|
||||
@ -61,14 +61,14 @@ delete_command_destruct(Command_t *parent)
|
||||
object_unref(command->obj);
|
||||
}
|
||||
|
||||
static gboolean
|
||||
static CmdExecuteValue_t
|
||||
delete_command_execute(Command_t *parent)
|
||||
{
|
||||
DeleteCommand_t *command = (DeleteCommand_t*) parent;
|
||||
command->changed = object_list_get_changed(command->list);
|
||||
command->position = object_get_position_in_list(command->obj);
|
||||
object_list_remove(command->list, command->obj);
|
||||
return TRUE;
|
||||
return CMD_APPEND;
|
||||
}
|
||||
|
||||
static void
|
||||
|
Reference in New Issue
Block a user