[Glade-users] a question about GtkImage
- From: wubei83 at 163.com (wubei83)
- Subject: [Glade-users] a question about GtkImage
- Date: Wed, 16 Jan 2008 20:15:42 +0800 (CST)
Hello,
I need some information about GtkImage .In my application, I attach a GtkImage in the GtkTable which is
attached in the top window. The program is as follows:
GtkWidget *image;
image = create_pixmap (image,"sine.png");
pix1 = gtk_image_get_pixbuf (GTK_IMAGE(image));
pix2 = gdk_pixbuf_scale_simple(pix1, 205, 82, GDK_INTERP_BILINEAR);
gtk_image_set_from_pixbuf (GTK_IMAGE(image), pix2);
g_object_unref (pix2);
gtk_widget_show (image);
gtk_table_attach (GTK_TABLE(table), image, 3, 16, 0, 8,
(GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL),
(GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), 0, 0);
Now, I want to realize the function that when I click the button, there will be a arrow displayed on the
fixed pisition of the image. But I do not know how to do.
Any information is appreciated. Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/glade-users/attachments/20080116/2103cd38/attachment-0001.html
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]