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
|
static void
|
||||||
ag_window_export(AgWindow *window, GError **err)
|
ag_window_export_agc(AgWindow *window, GError **err)
|
||||||
{
|
{
|
||||||
const gchar *name;
|
const gchar *name;
|
||||||
gchar *file_name;
|
gchar *file_name;
|
||||||
@ -968,15 +968,15 @@ ag_window_export(AgWindow *window, GError **err)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
ag_window_export_action(GSimpleAction *action,
|
ag_window_export_agc_action(GSimpleAction *action,
|
||||||
GVariant *parameter,
|
GVariant *parameter,
|
||||||
gpointer user_data)
|
gpointer user_data)
|
||||||
{
|
{
|
||||||
AgWindow *window = AG_WINDOW(user_data);
|
AgWindow *window = AG_WINDOW(user_data);
|
||||||
GError *err = NULL;
|
GError *err = NULL;
|
||||||
|
|
||||||
ag_window_recalculate_chart(window, TRUE);
|
ag_window_recalculate_chart(window, TRUE);
|
||||||
ag_window_export(window, &err);
|
ag_window_export_agc(window, &err);
|
||||||
|
|
||||||
if (err) {
|
if (err) {
|
||||||
ag_app_message_dialog(
|
ag_app_message_dialog(
|
||||||
@ -1614,7 +1614,7 @@ ag_window_connection_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 },
|
||||||
{ "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 },
|
{ "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 },
|
||||||
|
@ -39,7 +39,7 @@
|
|||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<attribute name="label" translatable="yes">Export…</attribute>
|
<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>
|
<attribute name="accel"><Primary><Shift>e</attribute>
|
||||||
</item>
|
</item>
|
||||||
</section>
|
</section>
|
||||||
|
Loading…
Reference in New Issue
Block a user