aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/pixmap_save.c
diff options
context:
space:
mode:
authorsfisher <sfisher@f5534014-38df-0310-8fa8-9805f1628bb7>2007-06-23 05:58:01 +0000
committersfisher <sfisher@f5534014-38df-0310-8fa8-9805f1628bb7>2007-06-23 05:58:01 +0000
commita4a3735e71d521db0cdc70dae4f9784b77552ce3 (patch)
treecc395308c9605b3fd052b86056e76fd11d59e52b /gtk/pixmap_save.c
parentc204408331876ae68d10829896d3bb5dc2d90021 (diff)
Updates to initial check-in of pixmap saving feature:
- Bump minimum GTK version from 2.4 to 2.6 in code and users manual - Free some strings after we're done with them git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@22170 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'gtk/pixmap_save.c')
-rw-r--r--gtk/pixmap_save.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/gtk/pixmap_save.c b/gtk/pixmap_save.c
index 04518ac534..030ddb266e 100644
--- a/gtk/pixmap_save.c
+++ b/gtk/pixmap_save.c
@@ -32,8 +32,8 @@
#include <gtk/gtk.h>
/* This feature is not available in GTK1 and includes some functions that
- * are only available in GTK2.4+ */
-#if GTK_CHECK_VERSION(2,4,0)
+ * are only available in GTK 2.6+ */
+#if GTK_CHECK_VERSION(2,6,0)
#include "pixmap_save.h"
#include "simple_dialog.h"
@@ -71,13 +71,16 @@ pixbuf_save_button_cb(GtkWidget *save_as_w, GdkPixbuf *pixbuf)
directory, and leave the selection box displayed. */
set_last_open_dir(filename);
g_free(filename);
+ g_free(file_type);
file_selection_set_current_folder(save_as_w,
get_last_open_dir());
return;
}
ret = gdk_pixbuf_save(pixbuf, filename, file_type, &error, NULL);
-
+ g_free(filename);
+ g_free(file_type);
+
if(!ret) {
simple_w = simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK,
"%s%s%s",
@@ -167,4 +170,4 @@ pixmap_save_cb(GtkWidget *w, gpointer pixmap_ptr)
window_destroy(save_as_w);
}
-#endif /* GTK_CHECK_VERSION(2,4,0) */
+#endif /* GTK_CHECK_VERSION(2,6,0) */