diff options
author | Jeffrey Stedfast <fejj@novell.com> | 2006-05-26 02:09:36 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2006-05-26 02:09:36 +0800 |
commit | b5a0acb45a80237d7640118ea11c68f0400bfc88 (patch) | |
tree | 11ab28f9110c94a4aa7c25c1f3dc35df6cdaec33 /composer/e-msg-composer-select-file.c | |
parent | 4b1250f0ca99455f37d637c42250933b863faedc (diff) | |
download | gsoc2013-evolution-b5a0acb45a80237d7640118ea11c68f0400bfc88.tar gsoc2013-evolution-b5a0acb45a80237d7640118ea11c68f0400bfc88.tar.gz gsoc2013-evolution-b5a0acb45a80237d7640118ea11c68f0400bfc88.tar.bz2 gsoc2013-evolution-b5a0acb45a80237d7640118ea11c68f0400bfc88.tar.lz gsoc2013-evolution-b5a0acb45a80237d7640118ea11c68f0400bfc88.tar.xz gsoc2013-evolution-b5a0acb45a80237d7640118ea11c68f0400bfc88.tar.zst gsoc2013-evolution-b5a0acb45a80237d7640118ea11c68f0400bfc88.zip |
Replace 'if (!filename)' with 'if (filename)', fixes a bug in Srini's
2006-05-25 Jeffrey Stedfast <fejj@novell.com>
* e-msg-composer-select-file.c (select_attach_response): Replace
'if (!filename)' with 'if (filename)', fixes a bug in Srini's
patch.
svn path=/trunk/; revision=32032
Diffstat (limited to 'composer/e-msg-composer-select-file.c')
-rw-r--r-- | composer/e-msg-composer-select-file.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/composer/e-msg-composer-select-file.c b/composer/e-msg-composer-select-file.c index 430bcb003a..c9e98c0a8e 100644 --- a/composer/e-msg-composer-select-file.c +++ b/composer/e-msg-composer-select-file.c @@ -61,8 +61,8 @@ get_selector(struct _EMsgComposer *composer, const char *title, guint32 flags) { GtkWidget *selection; GtkWidget *showinline = NULL; - char *path; GList *icon_list; + char *path; path = g_object_get_data ((GObject *) composer, "attach_path"); @@ -194,12 +194,12 @@ select_attach_response(GtkWidget *selector, guint response, struct _EMsgComposer EMsgComposerSelectAttachFunc func = g_object_get_data((GObject *)selector, "callback"); GtkToggleButton *showinline = g_object_get_data((GObject *)selector, "show-inline"); char *path = NULL; - + #ifdef USE_GTKFILECHOOSER char *filename = NULL; names = gtk_file_chooser_get_uris (GTK_FILE_CHOOSER (selector)); filename = gtk_file_chooser_get_filename (GTK_FILE_CHOOSER (selector)); - if (!filename) { + if (filename) { path = g_path_get_dirname (filename); g_free (filename); } |