Re: GtkPlot questions

2008-04-16 Thread jcupitt
2008/4/16 Randy Poe <[EMAIL PROTECTED]>: > Does anyone have any experience with the GtkPlot widget in > the GtkExtra library? > > I am trying to write a button callback which generates the > plot. This plot is on one of a set of tabbed panels. I was > going crazy trying to figure out why I neve

Re: Location entry in GtkFileChooser

2008-04-16 Thread Carlos Pereira
Hi, You were right, gtk_file_chooser_get_uri () gives me correctly the contents in the Location GtkEntry. Sort off: If I write http://www.app.org/, I get the same. However, if I write http://www.app.org (without the final slash) I get: http%3A%2F%2Fwww.app.org Other problems still remain. When

GtkPlot questions

2008-04-16 Thread Randy Poe
Does anyone have any experience with the GtkPlot widget in the GtkExtra library? I am trying to write a button callback which generates the plot. This plot is on one of a set of tabbed panels. I was going crazy trying to figure out why I never saw any output, until I realized that the graph gets p

答复: A question about GTK Scale

2008-04-16 Thread Ke Jin
The problem is solved. Thanks! But it is still a little strange that I have tried the while(gtk_events_pending()) gtk_main_iteration(); before which didn't work. But after I changed: slider = gtk_vscale_new_with_range(0,1000,0.1); to GtkObject *adj1; adj1 = gtk_adjustment_new (0.0, 0.0

Re: A question about GTK Scale

2008-04-16 Thread Christopher Backhouse
Perhaps it takes 2 iterations of the main loop for the vscale to update. What happens if you try while(gtk_events_pending()) gtk_main_iteration(); instead? Ke Jin wrote: > Dear All, > I have a VScale in my interface and I created button named "Play" that > once the button is clicked, the scale w

A question about GTK Scale

2008-04-16 Thread Ke Jin
Dear All, I have a VScale in my interface and I created button named "Play" that once the button is clicked, the scale will move automatically. Below is the function connected to the button. And it performed strangely. The scale was not updated every iteration of the loop, which means the value

signal for detecting gtk app de-focus

2008-04-16 Thread Steve Splonskowski
Hello, I am attempting to find a way in my gtk app to get control (via signal or other means) when my application looses focus - that is when another application comes to the front, but my app is still running. I need to cleanup somethings at that point in time, but have not been able to d

RE: GTK mouse position

2008-04-16 Thread CottonChen
Dear All, Sorry for bothering you all so much. I get the answer by finding out from mail list archives. gdk_window_get_pointer can do this. Cotton Chen Dear all, I'm new in developing applications by GTK. I'd like to get the current mouse

GTK mouse position

2008-04-16 Thread CottonChen
Dear all, I'm new in developing applications by GTK. I'd like to get the current mouse poistion and mouse image from current screen. After searching by Google and from Gnome library manuals, I could only find XQueryPointer that satisfies me needs. But is there any interfaces in GTK+/G