Hello Mahesh, I did not know that you use the old version. Actually, Gnome VFS is deprecated, but on your Linux it should be still available. This library has a similar monitor: https://developer.gnome.org/gnome-vfs/stable/gnome-vfs-2.0-gnome-vfs-monitor.htmlProbably, this should suit you the most. There is also another library that you can try to use: http://en.wikipedia.org/wiki/Inotify If you do not want to add additional libraries (I assume there are more solutions like proposed above), you can write a custom function to get information about the file in the main loop or in a separate thread. If the information, such as changed date and size, changes, you can send a custom event.
Kind regards, Vlad On Thu, Oct 3, 2013 at 12:13 PM, Mahesh Chaudhari < mahesh.chaudh...@ymail.com> wrote: > Thanks Vest V for reply > I can able to draw circles using GtkDrawingArea and cairo > but is there any alternative to GIO as I have to use CentOS-5.3 (glib > version 2.10) and I think GIO is not supported in this version > OR > from where do I install GIO library > > *From:* Vest V. <vest...@gmail.com> > *To:* "gtk-app-devel-list@gnome.org" <gtk-app-devel-list@gnome.org> > *Sent:* Thursday, 26 September 2013 4:11 AM > *Subject:* Re: changing colour of widget > > Hello Mahesh, > > It depends on which approach you want to use: draw LEDs manually, or > display images. The first possible widget is GtkDrawingArea: > https://developer.gnome.org/gtk3/3.2/GtkDrawingArea.html,the second is > > GtkImage: https://developer.gnome.org/gtk3/3.2/GtkImage.html > > Regarding the event: probably you need GIO library (especially the > GFileMonitor: https://developer.gnome.org/gio/unstable/GFileMonitor.html) > > Kind regards, > Vlad > > > On Thu, Sep 26, 2013 at 12:17 PM, Mahesh Chaudhari < > mahesh.chaudh...@ymail.com> wrote: > > > Hi List, > > I am very new to GTK+ programming and got a task of developing user > > interface (GUI) to one of our embedded board > > I went through basics of GTK searching for any widget that could > represent > > on board LEDs, which can glows (basically changes colour) > > Also, is it possible to generate an event whenever file is updated > instead > > of user (mouse clicks, keyboard press) > > > > > > Any Help > > _______________________________________________ > > gtk-app-devel-list mailing list > > gtk-app-devel-list@gnome.org > > https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list > > > _______________________________________________ > gtk-app-devel-list mailing list > gtk-app-devel-list@gnome.org > https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list > > > _______________________________________________ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list