Mercurial > pidgin
comparison src/gtkft.c @ 5966:5fb6bd688a5b
[gaim-migrate @ 6413]
I renamed file_is_dir to gaim_gtk_check_if_dir and moved it to gtkutils.c/h
Chipster (or whoever) - Lemme know if that's notsogood, remember: I pretend
not to know anything about gtk.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Fri, 27 Jun 2003 23:11:21 +0000 |
parents | 0a2a32b1917c |
children | 1abc483f74c6 |
comparison
equal
deleted
inserted
replaced
5965:cd8f8e5d697e | 5966:5fb6bd688a5b |
---|---|
30 #include "util.h" | 30 #include "util.h" |
31 | 31 |
32 #include "gaim-disclosure.h" | 32 #include "gaim-disclosure.h" |
33 #include "gtkcellrendererprogress.h" | 33 #include "gtkcellrendererprogress.h" |
34 #include "gtkft.h" | 34 #include "gtkft.h" |
35 #include "gtkutils.h" | |
35 #include "stock.h" | 36 #include "stock.h" |
36 | 37 |
37 #define GAIM_GTKXFER(xfer) \ | 38 #define GAIM_GTKXFER(xfer) \ |
38 (struct gaim_gtkxfer_ui_data *)(xfer)->ui_data | 39 (struct gaim_gtkxfer_ui_data *)(xfer)->ui_data |
39 | 40 |
994 xfer = (struct gaim_xfer *)user_data; | 995 xfer = (struct gaim_xfer *)user_data; |
995 data = GAIM_GTKXFER(xfer); | 996 data = GAIM_GTKXFER(xfer); |
996 | 997 |
997 name = gtk_file_selection_get_filename(GTK_FILE_SELECTION(data->filesel)); | 998 name = gtk_file_selection_get_filename(GTK_FILE_SELECTION(data->filesel)); |
998 | 999 |
999 if (file_is_dir(name, GTK_FILE_SELECTION(data->filesel))) | 1000 if (gaim_gtk_check_if_dir(name, GTK_FILE_SELECTION(data->filesel))) |
1000 return; | 1001 return; |
1001 | 1002 |
1002 if (stat(name, &st) != 0) { | 1003 if (stat(name, &st) != 0) { |
1003 /* File not found. */ | 1004 /* File not found. */ |
1004 if (gaim_xfer_get_type(xfer) == GAIM_XFER_RECEIVE) { | 1005 if (gaim_xfer_get_type(xfer) == GAIM_XFER_RECEIVE) { |