Re: [Glade-users] g_file_test behavior -- Post with message.
- From: Harring Figueiredo <harringf yahoo com>
- To: Harring Figueiredo <harringf yahoo com>, gtk_list gtk gtk <gtk-app-devel-list gnome org>, glade users <glade-users ximian com>
- Subject: Re: [Glade-users] g_file_test behavior -- Post with message.
- Date: Tue, 24 Sep 2002 08:39:01 -0700 (PDT)
Folks,
I traced the problem. Apparently I must "\\" the entire file path.
c:\\blah\\balh\\balh -- Why is this not done by the GtkFileSelection Widget ?
Feature.
Harring.
--- Harring Figueiredo <harringf yahoo com> wrote:
Hello all,
I have the following code:
if( g_file_test( settings->input_dir, G_FILE_TEST_IS_DIR) == FALSE)
{
log(ERROR, "ERROR: Input Directory [%s] is not a valid directory.);
return;
}
The settings->input_dir comes from a Gtk/ComboGtkEntry. When running on
Linux,
the test passes as expected. However, when running on Win2K, I get the
following :
[C:\msys10\home\Administrator\Projects\cdstation-0.1\src\] is not a valid
directory. (even though the directory exists)
The directory prints OK, but it says it is invalid. Do I need to call the
UTF-8 encoding on the returned value from gtk_entry_get_text or is this
problem due to the fact that I am starting the application from within a
MSYS/MingW environment ?
Thanks,
Harring.
__________________________________________________
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
http://sbc.yahoo.com
_______________________________________________
Glade-users maillist - Glade-users ximian com
http://lists.ximian.com/mailman/listinfo/glade-users
__________________________________________________
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
http://sbc.yahoo.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]