Rename action export to export-agc
This is to unambiguate action and function names
This commit is contained in:
parent
639ed69d4c
commit
93ef0d2263
@ -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,7 +968,7 @@ ag_window_export(AgWindow *window, GError **err)
|
||||
}
|
||||
|
||||
static void
|
||||
ag_window_export_action(GSimpleAction *action,
|
||||
ag_window_export_agc_action(GSimpleAction *action,
|
||||
GVariant *parameter,
|
||||
gpointer user_data)
|
||||
{
|
||||
@ -976,7 +976,7 @@ ag_window_export_action(GSimpleAction *action,
|
||||
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 },
|
||||
|
@ -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"><Primary><Shift>e</attribute>
|
||||
</item>
|
||||
</section>
|
||||
|
Loading…
Reference in New Issue
Block a user