Change pixmap created by glade-2



Hei,

I have created an pixmap image with glade-2 that has generated the
following code:

  image2 = create_pixmap (main, "stop.xpm");
  gtk_widget_set_name (image2, "image2");
  gtk_widget_show (image2);

When my program is running I would like to change this image
to"run.xpm". I guess I have to find the image widget by:

 GtkPixmap * image = lookup_widget(GTK_WIDGET(button), "image2");

But now, how do I change to image.


Thanks for all help.

Tom Froysland.




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