Rename action export to export-agc

This is to unambiguate action and function names
This commit is contained in:
Gergely Polonkai 2014-09-14 23:30:25 +02:00
parent 639ed69d4c
commit 93ef0d2263
2 changed files with 7 additions and 7 deletions

View File

@ -898,7 +898,7 @@ ag_window_export_svg_action(GSimpleAction *action,
}
static void
ag_window_export(AgWindow *window, GError **err)
ag_window_export_agc(AgWindow *window, GError **err)
{
const gchar *name;
gchar *file_name;
@ -968,15 +968,15 @@ ag_window_export(AgWindow *window, GError **err)
}
static void
ag_window_export_action(GSimpleAction *action,
GVariant *parameter,
gpointer user_data)
ag_window_export_agc_action(GSimpleAction *action,
GVariant *parameter,
gpointer user_data)
{
AgWindow *window = AG_WINDOW(user_data);
GError *err = NULL;
ag_window_recalculate_chart(window, TRUE);
ag_window_export(window, &err);
ag_window_export_agc(window, &err);
if (err) {
ag_app_message_dialog(
@ -1614,7 +1614,7 @@ ag_window_connection_action(GSimpleAction *action,
static GActionEntry win_entries[] = {
{ "close", ag_window_close_action, NULL, NULL, NULL },
{ "save", ag_window_save_action, NULL, NULL, NULL },
{ "export", ag_window_export_action, NULL, NULL, NULL },
{ "export-agc", ag_window_export_agc_action, NULL, NULL, NULL },
{ "export-svg", ag_window_export_svg_action, NULL, NULL, NULL },
{ "view-menu", ag_window_view_menu_action, NULL, "false", NULL },
{ "gear-menu", ag_window_gear_menu_action, NULL, "false", NULL },

View File

@ -39,7 +39,7 @@
</item>
<item>
<attribute name="label" translatable="yes">Export…</attribute>
<attribute name="action">win.export</attribute>
<attribute name="action">win.export-agc</attribute>
<attribute name="accel">&lt;Primary&gt;&lt;Shift&gt;e</attribute>
</item>
</section>