|
|
| Author |
Message |
|
|
ramesh Familiar Face
Joined: 16 Nov 2006 Posts: 40
|
Posted: Tue Nov 21, 2006 6:32 am Post subject: insert .png in textview |
|
|
hi
is anybody knows how to insert smile.png into gtktext view
i previosly used smile.xpm
and the code is
GtkWidget *image;
image= gdk_pixbuf_new_from_file(smile.xpm, NULL);
gtk_text_buffer_get_end_iter(cw->buffer1,&end);
gtk_text_buffer_insert_pixbuf (cw->buffer1,&end,image);
but now it want to change smile.png
please show me the way
thank you |
|
| Back to top |
|
 |
cnu_sree GTK+ Geek
Joined: 06 Oct 2006 Posts: 57
|
Posted: Tue Nov 21, 2006 7:05 am Post subject: |
|
|
palce png in src or give the path where png or loaded and replace xpm with png.
try it |
|
| Back to top |
|
 |
openldev Never Seen the Sunlight
Joined: 21 Sep 2005 Posts: 386 Location: Fairfax, Virginia
|
|
| Back to top |
|
 |
|