mirror of https://github.com/GNOME/gimp.git
split the message into primary and secondary label.
2005-05-11 Sven Neumann <sven@gimp.org> * plug-ins/jpeg/jpeg-exif.c (jpeg_query): split the message into primary and secondary label.
This commit is contained in:
parent
fb03c60e15
commit
c9933fca55
|
@ -1,3 +1,8 @@
|
|||
2005-05-11 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* plug-ins/jpeg/jpeg-exif.c (jpeg_query): split the message into
|
||||
primary and secondary label.
|
||||
|
||||
2005-05-11 Michael Natterer <mitch@gimp.org>
|
||||
|
||||
* app/widgets/gimpuimanager.c (gimp_ui_manager_find_action): allow
|
||||
|
|
|
@ -49,7 +49,8 @@
|
|||
#include "libgimp/stdplugins-intl.h"
|
||||
|
||||
|
||||
static gboolean jpeg_query (const gchar *msg,
|
||||
static gboolean jpeg_query (const gchar *primary,
|
||||
const gchar *secondary,
|
||||
const gchar *cancel_label,
|
||||
const gchar *ok_label);
|
||||
|
||||
|
@ -85,9 +86,9 @@ jpeg_apply_exif_data_to_image (const gchar *filename,
|
|||
{
|
||||
gint orient = exif_get_short (entry->data, byte_order);
|
||||
|
||||
if (load_interactive && orient > 1 && orient <= 8)
|
||||
if (jpeg_query (_("According to the EXIF data, this image is rotated. "
|
||||
"Would you like GIMP to rotate it into the standard "
|
||||
if (load_interactive && orient > 1 && orient <= 8 &&
|
||||
jpeg_query (_("According to the EXIF data, this image is rotated."),
|
||||
_("Would you like GIMP to rotate it into the standard "
|
||||
"orientation?"),
|
||||
_("_Keep Orientation"), GIMP_STOCK_TOOL_ROTATE))
|
||||
{
|
||||
|
@ -123,7 +124,6 @@ jpeg_apply_exif_data_to_image (const gchar *filename,
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
exif_data_unref (exif_data);
|
||||
}
|
||||
|
||||
|
@ -224,7 +224,8 @@ jpeg_setup_exif_for_save (ExifData *exif_data,
|
|||
|
||||
|
||||
static gboolean
|
||||
jpeg_query (const gchar *msg,
|
||||
jpeg_query (const gchar *primary,
|
||||
const gchar *secondary,
|
||||
const gchar *cancel_label,
|
||||
const gchar *ok_label)
|
||||
{
|
||||
|
@ -235,7 +236,11 @@ jpeg_query (const gchar *msg,
|
|||
dialog = gtk_message_dialog_new (NULL, 0,
|
||||
GTK_MESSAGE_QUESTION,
|
||||
GTK_BUTTONS_NONE,
|
||||
"%s", msg);
|
||||
"%s", primary);
|
||||
|
||||
gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (dialog),
|
||||
"%s", secondary);
|
||||
|
||||
|
||||
gtk_dialog_add_buttons (GTK_DIALOG (dialog),
|
||||
cancel_label, GTK_RESPONSE_CANCEL,
|
||||
|
|
Loading…
Reference in New Issue