Mercurial > pidgin.yaz
comparison src/protocols/toc/toc.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 | 0878caaef952 |
comparison
equal
deleted
inserted
replaced
5965:cd8f8e5d697e | 5966:5fb6bd688a5b |
---|---|
32 #include "util.h" | 32 #include "util.h" |
33 | 33 |
34 /* XXX */ | 34 /* XXX */ |
35 #include "gaim.h" | 35 #include "gaim.h" |
36 #include "ui.h" | 36 #include "ui.h" |
37 #include "gtkutils.h" | |
37 | 38 |
38 static GaimPlugin *my_protocol = NULL; | 39 static GaimPlugin *my_protocol = NULL; |
39 | 40 |
40 #define REVISION "penguin" | 41 #define REVISION "penguin" |
41 | 42 |
1644 struct file_transfer *ft; | 1645 struct file_transfer *ft; |
1645 const char *dirname = gtk_file_selection_get_filename(GTK_FILE_SELECTION(old_ft->window)); | 1646 const char *dirname = gtk_file_selection_get_filename(GTK_FILE_SELECTION(old_ft->window)); |
1646 GaimAccount *account; | 1647 GaimAccount *account; |
1647 char buf[BUF_LEN * 2]; | 1648 char buf[BUF_LEN * 2]; |
1648 | 1649 |
1649 if (file_is_dir(dirname, GTK_FILE_SELECTION(old_ft->window))) | 1650 if (gaim_gtk_check_if_dir(dirname, GTK_FILE_SELECTION(old_ft->window))) |
1650 return; | 1651 return; |
1651 ft = g_new0(struct file_transfer, 1); | 1652 ft = g_new0(struct file_transfer, 1); |
1652 if (old_ft->files == 1) | 1653 if (old_ft->files == 1) |
1653 ft->filename = g_strdup(dirname); | 1654 ft->filename = g_strdup(dirname); |
1654 else | 1655 else |
1843 struct file_transfer *ft; | 1844 struct file_transfer *ft; |
1844 const char *dirname = gtk_file_selection_get_filename(GTK_FILE_SELECTION(old_ft->window)); | 1845 const char *dirname = gtk_file_selection_get_filename(GTK_FILE_SELECTION(old_ft->window)); |
1845 GaimAccount *account; | 1846 GaimAccount *account; |
1846 char *buf, buf2[BUF_LEN * 2]; | 1847 char *buf, buf2[BUF_LEN * 2]; |
1847 | 1848 |
1848 if (file_is_dir(dirname, GTK_FILE_SELECTION(old_ft->window))) | 1849 if (gaim_gtk_check_if_dir(dirname, GTK_FILE_SELECTION(old_ft->window))) |
1849 return; | 1850 return; |
1850 ft = g_new0(struct file_transfer, 1); | 1851 ft = g_new0(struct file_transfer, 1); |
1851 ft->filename = g_strdup(dirname); | 1852 ft->filename = g_strdup(dirname); |
1852 ft->file = fopen(ft->filename, "r"); | 1853 ft->file = fopen(ft->filename, "r"); |
1853 if (!ft->file) { | 1854 if (!ft->file) { |