How to zoom image using GtkImage Widget?
- From: "raymond-xu" <raymond-xu 126 com>
- To: gtk-app-devel-list gnome org
- Subject: How to zoom image using GtkImage Widget?
- Date: Sat, 7 Oct 2006 18:30:12 +0800 (CST)
Hi everyone!
I'm trying to write a program using GtkImage widget to show image, I want to zoom image in the widget. My
solution is :
1 create a GtkImage
2 add handler for "size-allocate" signal of GtkImage widget
3 use gdk functions to scale the image
The main problem is on the step 2, in the callback of the "size-allocate" signal, I always get width of the
request width, it seems not the actual width allocated for GtkImage. Is it a bug?
If anyone has some solution or can fix problem, let me know.
Thanks advance
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]