how to compile only one module from the coreutils source?

2008-05-06 Thread Soulivanh Anothay
Hello everybody, I have downloaded GNU coreutils source, and wondering how to compile only one module manually? Example, the module for the command: cp -R which would do a recursive copy of a directory. Since part of my application is to do a recursive copy of multiple folders, thus, if I could

GFile issue: undefined reference to `g_file_new_for_path'

2008-05-04 Thread Soulivanh Anothay
Hello everybody, I have just manually installed the newer version of GLib 2.16.3 , I have checked the installation by issuing this command: pkg-config --modversion glib-2.0 and it returned: 2.16.3 . This should confirmed me that the previous installation of GLib 2.16.3 was successful. However,

USB Device Dection?

2008-04-29 Thread Soulivanh Anothay
Hello all, I like to write a simple application that it shall scan all USB devices that are currently attached to the computer. My question is, does anyone know of any C function or a linux system call which I can use for scanning for USB devices, and also report back the types of those devices,

gtk_text_buffer_insert function does not insert the new text onto the text view buffer immediately?

2008-04-25 Thread Soulivanh Anothay
Hi all, I am writing a simple application with GTK+, I updated the text view area with the text using gtk_text_buffer_insert function. I am wondering why the new text was not displayed immediately on the text view right after the line: gtk_text_buffer_insert (..., new text); ? The new text was

g_file_copy and GFileProgressCallback with a progressbar to monitor the g_file_copy?

2008-04-22 Thread Soulivanh Anothay
Hi all, I have looked online but I could not find much helpful information. Can anyone point me an simple example of using GFileProgressCallback with a progress bar to monitor g_file_copy.? If possible working with multiple folders asynchronously. Thanks, Souliavanh