GParamSpecs for file-path and uris

2007-10-02 Thread Stefan Kost
hi, is soemone aware of a GParamSpec implementation for file-path and uris. Most apps use GParamSpecString. Disadvantage is that one can put anaything there and for apps that generate UIs it impossible to detect that a file-cooser button would be more appropriate than a entry box. I guess si

Auto-scrolling the scrollbar on a TreeView

2007-10-02 Thread Rob Hoelz
Hello everyone, I'm currently using a Gtk2 TreeView within a Gtk2 ScrolledWindow, and I'd like to be able to navigate the tree using the keyboard. I've set up key bindings so Right expands a tree, Left collapses it, and Up and Down seem to be already set to navigate expanded cells. However, when

Re: drawing in a not-callback-function

2007-10-02 Thread Brian J. Tarricone
Daniel Dieterle wrote: > Hi, > > i'm just beginning to collect some experience with gtk+ and glade. > > My goal is to draw regularly a circle on an other position. I think the > right way doing this, is to use a timer-function. It should be something > like this: > > gint draw_satellite( gpointe

Re: timeout function not called

2007-10-02 Thread tsangv
Thanks, I have tried to add gtk_main_iteration in various places but it still won't work. Also I just want the bar to pulse while growPart is running - just to show something is happening. After grow Part is finished, I want to run the ext2resize utility and have a progress bar pulsing through

Re: timeout function not called

2007-10-02 Thread Fernando ApesteguĂ­a
On 10/2/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I'm still muddling my way through my first GTK application (and I'm a > relative newbie on all software matters). > > I have the following in one of my callbacks: > > timer = g_timout_add(50, (GSourceFunc) progress_update, > (gpointer)progr

timeout function not called

2007-10-02 Thread tsangv
I'm still muddling my way through my first GTK application (and I'm a relative newbie on all software matters). I have the following in one of my callbacks: timer = g_timout_add(50, (GSourceFunc) progress_update, (gpointer)progressbar); pid = fork( ); if (pid == 0) { growPart ( ); e

drawing in a not-callback-function

2007-10-02 Thread Daniel Dieterle
Hi, i'm just beginning to collect some experience with gtk+ and glade. My goal is to draw regularly a circle on an other position. I think the right way doing this, is to use a timer-function. It should be something like this: gint draw_satellite( gpointer data ) { gdk_draw_points( widget->windo

re: pixbuf color count

2007-10-02 Thread Gnaural
Counting unique colors in a GtkPixbuf should be pretty easy once you know how to access the pixels as an array. The put_pixel() example here gives you everthing you need to know for that: http://developer.gimp.org/api/2.0/gdk-pixbuf/gdk-pixbuf-gdk-pixbuf.html Seems like finding unique colors would