Re: How to run during "idle" in the main loop ?

2008-09-27 Thread XiuHua Wu
Yes, the function is global for your program, not just for only one window as it is for the "default main loop". Bu you can control the time when to attach and detach the idle callback function to achieve your purpose. Han wrote: Thanks XiuHua. I had a look at g_idle_add and g_idle_add_full,

Re: How to run during "idle" in the main loop ?

2008-09-27 Thread Han
Thanks XiuHua. I had a look at g_idle_add and g_idle_add_full, i am wondering how i can associate this function to a particular GTK+ window / dialog ? There seems no parameter in the function to attach it to any window ? thanks Han On Sat, Sep 27, 2008 at 9:59 PM, XiuHua Wu <[EMAIL PROTECTED]

Re: How to run during "idle" in the main loop ?

2008-09-27 Thread XiuHua Wu
You can try the g_idle_add or g_idle_add_full function. But keep in mind , just read the description of these functions before you use them. Han wrote: Hi, I am writing a new app using GTK+, but I am new to GTK+. I have a question: how do I execute code during the "idle" state of a window or

How to run during "idle" in the main loop ?

2008-09-27 Thread Han
Hi, I am writing a new app using GTK+, but I am new to GTK+. I have a question: how do I execute code during the "idle" state of a window or dialog? I understand I can use g_signal_connect to run some code for certain signals & events, but how about "idle" ? particularly, I wanted to run som

How to set a TTF font file?

2008-09-27 Thread Lazy Fox
I place a *.TTF font file in a directory, eg. /home/mine/fonts/. How to specify this directory in my gtk+ code, and how to use this font in my program? Thanks! ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman

Re: g_file_find_enclosing_mount() under Windows

2008-09-27 Thread Tor Lillqvist
> Is this a bug, Probably, yes. More like unimplemented features. There are lots of things in GIO that are not implemented at all, or incompletely, on Windows. --tml ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/

g_file_find_enclosing_mount() under Windows

2008-09-27 Thread Chris Morrison
Hi all, I am developing a program using GLib. When a file is loaded into my program from a removable disc such as a CD-ROM, USB stick or floppy etc. I need to get the volume label of this disc from which the file has been loaded. I am trying to do this using the g_file_find_enclosing_mount() fun