Rename Save as function to Export
This commit is contained in:
parent
8533b2f887
commit
41098fd2c0
@ -102,7 +102,7 @@ ag_window_close_action(GSimpleAction *action,
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
ag_window_save_as(AgWindow *window, GError **err)
|
ag_window_export(AgWindow *window, GError **err)
|
||||||
{
|
{
|
||||||
gchar *name;
|
gchar *name;
|
||||||
gchar *file_name;
|
gchar *file_name;
|
||||||
@ -150,7 +150,7 @@ ag_window_save_as(AgWindow *window, GError **err)
|
|||||||
file_name = g_strdup_printf("%s.agc", name);
|
file_name = g_strdup_printf("%s.agc", name);
|
||||||
g_free(name);
|
g_free(name);
|
||||||
|
|
||||||
fs = gtk_file_chooser_dialog_new(_("Save Chart"),
|
fs = gtk_file_chooser_dialog_new(_("Export Chart"),
|
||||||
GTK_WINDOW(window),
|
GTK_WINDOW(window),
|
||||||
GTK_FILE_CHOOSER_ACTION_SAVE,
|
GTK_FILE_CHOOSER_ACTION_SAVE,
|
||||||
_("_Cancel"), GTK_RESPONSE_CANCEL,
|
_("_Cancel"), GTK_RESPONSE_CANCEL,
|
||||||
@ -206,7 +206,7 @@ ag_window_save_action(GSimpleAction *action,
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
ag_window_save_as_action(GSimpleAction *action,
|
ag_window_export_action(GSimpleAction *action,
|
||||||
GVariant *parameter,
|
GVariant *parameter,
|
||||||
gpointer user_data)
|
gpointer user_data)
|
||||||
{
|
{
|
||||||
@ -214,7 +214,7 @@ ag_window_save_as_action(GSimpleAction *action,
|
|||||||
GError *err = NULL;
|
GError *err = NULL;
|
||||||
|
|
||||||
recalculate_chart(window);
|
recalculate_chart(window);
|
||||||
ag_window_save_as(window, &err);
|
ag_window_export(window, &err);
|
||||||
|
|
||||||
if (err) {
|
if (err) {
|
||||||
ag_app_message_dialog(
|
ag_app_message_dialog(
|
||||||
@ -907,7 +907,7 @@ ag_window_change_tab_action(GSimpleAction *action,
|
|||||||
static GActionEntry win_entries[] = {
|
static GActionEntry win_entries[] = {
|
||||||
{ "close", ag_window_close_action, NULL, NULL, NULL },
|
{ "close", ag_window_close_action, NULL, NULL, NULL },
|
||||||
{ "save", ag_window_save_action, NULL, NULL, NULL },
|
{ "save", ag_window_save_action, NULL, NULL, NULL },
|
||||||
{ "save-as", ag_window_save_as_action, NULL, NULL, NULL },
|
{ "export", ag_window_export_action, NULL, NULL, NULL },
|
||||||
{ "export-svg", ag_window_export_svg_action, NULL, NULL, NULL },
|
{ "export-svg", ag_window_export_svg_action, NULL, NULL, NULL },
|
||||||
{ "view-menu", ag_window_view_menu_action, NULL, "false", NULL },
|
{ "view-menu", ag_window_view_menu_action, NULL, "false", NULL },
|
||||||
{ "gear-menu", ag_window_gear_menu_action, NULL, "false", NULL },
|
{ "gear-menu", ag_window_gear_menu_action, NULL, "false", NULL },
|
||||||
|
@ -38,9 +38,9 @@
|
|||||||
<attribute name="accel"><Primary>s</attribute>
|
<attribute name="accel"><Primary>s</attribute>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<attribute name="label" translatable="yes">Save as…</attribute>
|
<attribute name="label" translatable="yes">Export…</attribute>
|
||||||
<attribute name="action">win.save-as</attribute>
|
<attribute name="action">win.export</attribute>
|
||||||
<attribute name="accel"><Primary><Shift>s</attribute>
|
<attribute name="accel"><Primary><Shift>e</attribute>
|
||||||
</item>
|
</item>
|
||||||
</section>
|
</section>
|
||||||
<section>
|
<section>
|
||||||
|
Loading…
Reference in New Issue
Block a user