[gimp/gimp-2-10] plug-ins: change export dialog title when exporting as AVIF.
- From: Jehan <jehanp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/gimp-2-10] plug-ins: change export dialog title when exporting as AVIF.
- Date: Sun, 4 Oct 2020 16:33:14 +0000 (UTC)
commit 2cfdeaeb1f10059171994a2176b89f4118445010
Author: Jehan <jehan girinstud io>
Date: Sun Oct 4 18:32:09 2020 +0200
plug-ins: change export dialog title when exporting as AVIF.
Similar to commit 5ec3293fee on master.
plug-ins/common/file-heif.c | 16 ++++++++++------
1 file changed, 10 insertions(+), 6 deletions(-)
---
diff --git a/plug-ins/common/file-heif.c b/plug-ins/common/file-heif.c
index 0d1b74685b..945951e5f4 100644
--- a/plug-ins/common/file-heif.c
+++ b/plug-ins/common/file-heif.c
@@ -67,7 +67,8 @@ static gboolean save_image (GFile *file,
static gboolean load_dialog (struct heif_context *heif,
uint32_t *selected_image);
static gboolean save_dialog (SaveParams *params,
- gint32 image_ID);
+ gint32 image_ID,
+ const gchar *procname);
GimpPlugInInfo PLUG_IN_INFO =
@@ -299,7 +300,7 @@ run (const gchar *name,
case GIMP_RUN_INTERACTIVE:
gimp_get_data (SAVE_PROC, ¶ms);
- if (! save_dialog (¶ms, image_ID))
+ if (! save_dialog (¶ms, image_ID, name))
status = GIMP_PDB_CANCEL;
break;
@@ -392,7 +393,7 @@ run (const gchar *name,
case GIMP_RUN_INTERACTIVE:
gimp_get_data (SAVE_PROC_AV1, ¶ms);
- if (! save_dialog (¶ms, image_ID))
+ if (! save_dialog (¶ms, image_ID, name))
status = GIMP_PDB_CANCEL;
break;
@@ -1950,8 +1951,9 @@ save_dialog_lossless_button_toggled (GtkToggleButton *source,
}
gboolean
-save_dialog (SaveParams *params,
- gint32 image_ID)
+save_dialog (SaveParams *params,
+ gint32 image_ID,
+ const gchar *procname)
{
GtkWidget *dialog;
GtkWidget *main_vbox;
@@ -1970,7 +1972,9 @@ save_dialog (SaveParams *params,
#endif
gboolean run = FALSE;
- dialog = gimp_export_dialog_new (_("HEIF"), PLUG_IN_BINARY, SAVE_PROC);
+ dialog = gimp_export_dialog_new (g_strcmp0 (procname, SAVE_PROC_AV1) == 0?
+ "AVIF" : "HEIF",
+ PLUG_IN_BINARY, procname);
main_vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 12);
gtk_container_set_border_width (GTK_CONTAINER (main_vbox), 12);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]