[balsa/gtk3] Do not cast non-widget to GtkWidget*
- From: Peter Bloomfield <PeterB src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [balsa/gtk3] Do not cast non-widget to GtkWidget*
- Date: Thu, 23 Jun 2011 00:30:16 +0000 (UTC)
commit 19b8276f40fc4bb6047f208d864d40ab6ffada26
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date: Wed Jun 22 20:29:32 2011 -0400
Do not cast non-widget to GtkWidget*
* src/sendmsg-window.c (add_attachment): do not cast non-widget
to GtkWidget*.
ChangeLog | 5 +++++
src/sendmsg-window.c | 5 +++--
2 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index d3144c3..4ac00e2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2011-06-22 Peter Bloomfield
+
+ * src/sendmsg-window.c (add_attachment): do not cast non-widget
+ to GtkWidget*.
+
2011-06-10 Peter Bloomfield
* src/balsa-mime-widget-message.c (bm_header_widget_realized):
diff --git a/src/sendmsg-window.c b/src/sendmsg-window.c
index 3edaf32..5846ff6 100644
--- a/src/sendmsg-window.c
+++ b/src/sendmsg-window.c
@@ -2055,8 +2055,9 @@ add_attachment(BalsaSendmsg * bsmsg, const gchar *filename,
if (is_fwd_message)
content_type = g_strdup(forced_mime_type);
pixbuf =
- libbalsa_icon_finder(GTK_WIDGET(bsmsg), forced_mime_type, file_uri,
- &content_type, GTK_ICON_SIZE_LARGE_TOOLBAR);
+ libbalsa_icon_finder(GTK_WIDGET(bsmsg->window), forced_mime_type,
+ file_uri, &content_type,
+ GTK_ICON_SIZE_LARGE_TOOLBAR);
if (!content_type)
/* Last ditch. */
content_type = g_strdup("application/octet-stream");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]