[gthumb] Use jpg/tif extensions when converting, instead of jpeg/tiff
- From: Michael J. Chudobiak <mjc src gnome org>
- To: svn-commits-list gnome org
- Subject: [gthumb] Use jpg/tif extensions when converting, instead of jpeg/tiff
- Date: Wed, 3 Jun 2009 08:52:21 -0400 (EDT)
commit 35f02605eb0af8e61f48c99e5aac433dfff77169
Author: Michael J. Chudobiak <mjc avtechpulse com>
Date: Wed Jun 3 08:51:45 2009 -0400
Use jpg/tif extensions when converting, instead of jpeg/tiff
Bug 584694
---
src/dlg-convert.c | 17 +++++++++--------
1 files changed, 9 insertions(+), 8 deletions(-)
diff --git a/src/dlg-convert.c b/src/dlg-convert.c
index 0f430f8..d272f23 100644
--- a/src/dlg-convert.c
+++ b/src/dlg-convert.c
@@ -403,16 +403,17 @@ ok_cb (GtkWidget *widget,
#define is_active(x) gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (x))
- if (is_active (data->conv_jpeg_radiobutton))
- data->image_type = data->ext = "jpeg";
- else if (is_active (data->conv_png_radiobutton))
+ if (is_active (data->conv_png_radiobutton)) {
data->image_type = data->ext = "png";
- else if (is_active (data->conv_tga_radiobutton))
+ } else if (is_active (data->conv_tga_radiobutton)) {
data->image_type = data->ext = "tga";
- else if (is_active (data->conv_tiff_radiobutton))
- data->image_type = data->ext = "tiff";
- else
- data->image_type = data->ext = "jpeg";
+ } else if (is_active (data->conv_tiff_radiobutton)) {
+ data->image_type = "tiff";
+ data->ext = "tif";
+ } else {
+ data->image_type = "jpeg";
+ data->ext = "jpg";
+ }
data->overwrite_mode = gtk_combo_box_get_active (GTK_COMBO_BOX (data->conv_om_combobox));
data->remove_original = is_active (data->conv_remove_orig_checkbutton);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]