2004-04-30 01:47:53 +08:00
|
|
|
/* The GIMP -- an image manipulation program
|
|
|
|
* Copyright (C) 1995 Spencer Kimball and Peter Mattis
|
|
|
|
*
|
|
|
|
* 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
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "config.h"
|
|
|
|
|
|
|
|
#include <string.h>
|
|
|
|
|
|
|
|
#include <gtk/gtk.h>
|
|
|
|
|
|
|
|
#include "libgimpwidgets/gimpwidgets.h"
|
|
|
|
|
|
|
|
#include "actions-types.h"
|
|
|
|
|
|
|
|
#include "core/gimp.h"
|
|
|
|
|
|
|
|
#include "widgets/gimpactiongroup.h"
|
|
|
|
#include "widgets/gimphelp-ids.h"
|
|
|
|
|
2004-05-02 18:34:04 +08:00
|
|
|
#include "file-dialog-actions.h"
|
|
|
|
#include "file-dialog-commands.h"
|
2004-04-30 01:47:53 +08:00
|
|
|
#include "file-save-actions.h"
|
|
|
|
|
|
|
|
#include "gimp-intl.h"
|
|
|
|
|
|
|
|
|
|
|
|
static GimpActionEntry file_save_actions[] =
|
|
|
|
{
|
2004-05-02 16:56:07 +08:00
|
|
|
{ "file-save-popup", NULL, N_("File Save Menu"), NULL, NULL, NULL,
|
2004-05-02 18:34:04 +08:00
|
|
|
GIMP_HELP_FILE_SAVE }
|
|
|
|
};
|
2004-04-30 01:47:53 +08:00
|
|
|
|
2004-05-02 18:34:04 +08:00
|
|
|
static GimpPlugInActionEntry file_save_file_type_actions[] =
|
|
|
|
{
|
2004-04-30 01:47:53 +08:00
|
|
|
{ "file-save-by-extension", NULL,
|
|
|
|
N_("By Extension"), NULL, NULL,
|
2004-05-02 18:34:04 +08:00
|
|
|
NULL,
|
2004-04-30 01:47:53 +08:00
|
|
|
GIMP_HELP_FILE_SAVE_BY_EXTENSION }
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
void
|
|
|
|
file_save_actions_setup (GimpActionGroup *group)
|
|
|
|
{
|
|
|
|
gimp_action_group_add_actions (group,
|
|
|
|
file_save_actions,
|
|
|
|
G_N_ELEMENTS (file_save_actions));
|
|
|
|
|
2004-05-02 18:34:04 +08:00
|
|
|
gimp_action_group_add_plug_in_actions (group,
|
|
|
|
file_save_file_type_actions,
|
|
|
|
G_N_ELEMENTS (file_save_file_type_actions),
|
|
|
|
G_CALLBACK (file_dialog_type_cmd_callback));
|
2004-04-30 01:47:53 +08:00
|
|
|
|
2004-05-02 18:34:04 +08:00
|
|
|
file_dialog_actions_setup (group, group->gimp->save_procs, "gimp_xcf_save");
|
2004-04-30 01:47:53 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
file_save_actions_update (GimpActionGroup *group,
|
|
|
|
gpointer data)
|
|
|
|
{
|
|
|
|
}
|