Allow urls to be typed into the filebox.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3577 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Dave Peticolas
2001-02-02 10:02:47 +00:00
parent b1f2159508
commit d5f1e3595f

View File

@@ -141,14 +141,20 @@ fileBox (const char * title, const char * filter, const char *default_name)
* Return: none *
\********************************************************************/
static void
store_filename(GtkWidget *w, gpointer data)
store_filename (GtkWidget *w, gpointer data)
{
FileBoxInfo *fb_info = (FileBoxInfo *) data;
FileBoxInfo *fb_info = data;
GtkFileSelection *fs;
char *file_name;
file_name = gtk_file_selection_get_filename(fb_info->file_box);
fs = GTK_FILE_SELECTION (fb_info->file_box);
fb_info->file_name = g_strdup(file_name);
file_name = gtk_entry_get_text (GTK_ENTRY (fs->selection_entry));
if (!strstr (file_name, "://"))
file_name = gtk_file_selection_get_filename (fb_info->file_box);
fb_info->file_name = g_strdup (file_name);
}
static void