How can i show a GtkImage widget ?



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]