How can i show a GtkImage widget ?
- From: "chao yeaj" <yeajchao gmail com>
- To: gtk-list gnome org, gtk-app-devel-list gnome org
- Subject: How can i show a GtkImage widget ?
- Date: Mon, 17 Jul 2006 13:01:58 +0800
Hello,everyone
I have GtkWidget like this:
GtkWidget *image = gtk_image_new_from_file("~/image.jpg");
and i show that widget like this:
GtkWidget *frame = gtk_frame_new(NULL);
gtk_container_add(GTK_CONTAINER(frame),image);
gtk_show_widget_all(frame);
But ,the problem is,I can not see the image in my application
Why ?
Any comments would be much appreciated,and thanks in advance !!
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]