How can i show a GtkImage widget ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 !!
_______________________________________________

gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux