summaryrefslogtreecommitdiff
path: root/ui/gtk/pixmap_save.c
diff options
context:
space:
mode:
authorBill Meier <wmeier@newsguy.com>2013-03-21 02:29:09 +0000
committerBill Meier <wmeier@newsguy.com>2013-03-21 02:29:09 +0000
commit8112ecc321d5d2025e7b780db21f88a31d0ee472 (patch)
tree885dc3989020530f2fcf4b82ec39284d36d43bd4 /ui/gtk/pixmap_save.c
parentda1bdffa1bbd6a9574afe2e834e1ac501653f3a4 (diff)
downloadwireshark-8112ecc321d5d2025e7b780db21f88a31d0ee472.tar.gz
From beroset:
remove C++ incompatibilities https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8416 attachment #10404 Note: The following parts of the patch had been previously done: asn1/snmp/packet-snmp-template.c epan/dissectors/packet-snmp.c epan/dissectors/packet-x11.c Also; hostlist_table.c: code under '#ifdef HAVE_GEOIP' didn't compile and needed a few additional patches. svn path=/trunk/; revision=48447
Diffstat (limited to 'ui/gtk/pixmap_save.c')
-rw-r--r--ui/gtk/pixmap_save.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/gtk/pixmap_save.c b/ui/gtk/pixmap_save.c
index a9d61cc06b..58c89d8113 100644
--- a/ui/gtk/pixmap_save.c
+++ b/ui/gtk/pixmap_save.c
@@ -50,7 +50,7 @@ pixmap_save_cb(GtkWidget *w, gpointer pixmap_ptr _U_)
{
GtkWidget *save_as_w;
#if GTK_CHECK_VERSION(2,22,0)
- surface_info_t *surface_info = g_object_get_data(G_OBJECT(w), "surface-info");
+ surface_info_t *surface_info = (surface_info_t *)g_object_get_data(G_OBJECT(w), "surface-info");
#else
GdkPixmap *pixmap = g_object_get_data(G_OBJECT(w), "pixmap");
#endif
@@ -108,7 +108,7 @@ pixmap_save_cb(GtkWidget *w, gpointer pixmap_ptr _U_)
file_formats = gdk_pixbuf_get_formats();
ffp = file_formats;
while(ffp) {
- pixbuf_format = ffp->data;
+ pixbuf_format = (GdkPixbufFormat *)ffp->data;
if (gdk_pixbuf_format_is_writable(pixbuf_format)) {
format_name = gdk_pixbuf_format_get_name(pixbuf_format);
gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT(type_cm),