Doh.
- From: Ryan Tilder <rtilder redhat com>
- To: balsa-list gnome org
- Subject: Doh.
- Date: Sun, 28 Mar 1999 23:00:52 -0500
Oops. Here it is.
--Ryan
--
======================================================================
The Mostly Reverend Mrs. Ryan Tilder rtilder@redhat.com
Red Hat Software, Inc. "We suck. Less." http://www.redhat.com
======================================================================
--- balsa/src/sendmsg-window.c 1999/03/03 00:59:48 1.136
+++ balsa/src/sendmsg-window.c 1999/03/29 03:55:03
@@ -43,7 +43,7 @@
static gint send_message_cb (GtkWidget *, BalsaSendmsg *);
static gint attach_clicked (GtkWidget *, gpointer);
static gint close_window (GtkWidget *, gpointer);
-
+static gint check_if_regular_file (gchar *);
static void balsa_sendmsg_destroy (BalsaSendmsg * bsm);
/* Standard DnD types */
@@ -159,13 +159,17 @@
static void
add_attachment (GnomeIconList * iconlist, char *filename)
{
- gint pos;
-
- pos = gnome_icon_list_append (
+ /* Why use unconditional? */
+ gchar *pix = gnome_pixmap_file ("balsa/attachment.png");
+
+ if (pix && check_if_regular_file(pix)) {
+ gint pos;
+ pos = gnome_icon_list_append (
iconlist,
- gnome_unconditional_pixmap_file ("balsa/attachment.png"),
+ pix,
g_basename (filename));
- gnome_icon_list_set_icon_data (iconlist, pos, filename);
+ gnome_icon_list_set_icon_data (iconlist, pos, filename);
+ }
}
static gint
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]