GtkImage simple question, please help

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

 



Hi !

  I`ve got a question. Let`s have this piece of code :


...

  GtkWidget * image1;
  GtkWidget * button;
  ...
  button = gtk_button_new ();
  image = gtk_image_new_from_file ( PATH );
  gtk_button_set_image ( GTK_BUTTON ( button), image1 );
  
questions are :

* if i`ll call gtk_image_clear (image) .. will it dispose memory reserved for image pointed by 'image1', or it will just clear pixbuf/bitmap ? 

* if answer for previous question is no, it will not dispose the memory, then how it is possible to change image inside button ?
_______________________________________________

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