Re: gtk+ display image
- From: Luka Napotnik <luka napotnik gmail com>
- To: lucks <a luckhee gmail com>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: gtk+ display image
- Date: Sat, 24 Feb 2007 18:20:47 +0100
You have to pack the image widget to a box with gtk_box_pack_* or a
container with gtk_container_add().
On pet, 2007-02-23 at 09:08 -0800, lucks wrote:
hi...am a student and am building an interface using gtk for my project...but
am having a problem in displaying an image...if someone could help me i
would be much grateful...below is the code which i`ve used. please help
me..thanks
void
on_bt_test_clicked (GtkButton *button,
gpointer user_data)
{
GtkWidget *img_objectdesign;
img_objectdesign = gtk_image_new_from_file ("baby.jpg");
gtk_widget_show (img_objectdesign);
*/
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]