GtkImage simple question, please help
- From: hm <z_b_r poczta fm>
- To: gtk-list gnome org
- Subject: GtkImage simple question, please help
- Date: 25 Jun 2006 11:15:12 +0200
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 ?
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]