Zoom/magnification of images in GDK

2010-04-20 Thread lindleyf
I have a GUI which shows 640x480 video frames from a firewire camera. I've 
gotten a request to allow the user to zoom in on a particular part of the image 
if they choose; the camera doesn't have a zoom feature, so this wouldn't give 
any better resolution, but might make things easier to see anyway.

Right now, the image is being written to a GtkDrawingArea using 
gdk_draw_grey_image().

Now, I know how I could do this if I used gtkglext to get OpenGL in the 
picture, so I could throw the image into a texture and then render it at an 
arbitrary size. But I was wondering if there were any options built into 
GTK/GDK which would allow me to avoid the extra dependency?
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


How can I programatically activate a GtkRadioToolButton?

2010-04-02 Thread lindleyf
I have a tool bar containing several GtkRadioToolButtons. Clicking on them 
works fine. However, I'm trying to figure out how I can activate one of them 
programatically.

My first guess was to do
gtk_widget_activate(GTK_WIDGET(radiobutton));
but that didn't work; gtk_widget_activate returned FALSE, and no "clicked" 
signal was emitted.

I've looked over the other available functions, and nothing strikes me as the 
obvious choice here. Any suggestions?
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list