Re: How to replace a image ?



Seongsu Lee wrote:
Hello,

Follow is the code to show image A.

  image = create_pixmap(win_background, FILENAME);
  gtk_widget_show(image);
  gtk_box_pack_start(GTK_BOX(vbox), image, TRUE, TRUE, 0);

I added image widget with image A in my app. I want to replace the image A to a image B. How can I do that?


First ask yourself, do you want to replace the GtkImage in the container
or do you just want the image to display something different ?

Then, you can decide if you want to remove the old image and
replace it with a new one, or if you're going to consult the
GtkImage docs about setting the graphics on the GtkImage :)

Cheers,
                 -Tristan




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