Re: displaying 2 images from combobox

2007-03-07 Thread Junior Polegato - GTK+ & GTKmm
lucks escreveu: > image1 = lookup_widget(GTK_WIDGET(combobox), " img_patterndesign"); > Hi, you have a space between " and img_. -- Yours Truly, Junior Polegato A pilgrim of problems; A parchment of solutions! Professional Page: http://www.juniorpolegato.co

Re: displaying 2 images from combobox

2007-03-07 Thread lucks
thanks for the info... am still having a lot of problems...you told me to declare it, so i did.but still i cant. in fact am new to gtk+ and dont know too mucn but i have to manage because i have to submit my project on gtk+.. i tried this too: void on_cbo_itemdesign_changed (GtkCom

Re: displaying 2 images from combobox

2007-03-07 Thread lucks
thanks for the info... am still having a lot of problems...you told me to declare it, so i did.but still i cant. in fact am new to gtk+ and dont know too mucn but i have to manage because i have to submit my project on gtk+.. i tried this too: void on_cbo_itemdesign_changed (GtkCom

Re: displaying 2 images from combobox

2007-03-07 Thread Yeti
On Wed, Mar 07, 2007 at 05:50:44AM -0800, lucks wrote: > > when i use this: > > { > GtkWidget *image = lookup_widget(GTK_WIDGET(combobox), > "img_objectdesign"); > >gtk_image_set_from_file (GTK_IMAGE(image), "Pictures/baby.jpg"); > } > > it works...as you can see image is already declared

Re: displaying 2 images from combobox

2007-03-07 Thread lucks
when i use this: { GtkWidget *image = lookup_widget(GTK_WIDGET(combobox), "img_objectdesign"); gtk_image_set_from_file (GTK_IMAGE(image), "Pictures/baby.jpg"); } it works...as you can see image is already declared in the first line. that is GtkWidget *image=lookup...etc. if i declare it at

Re: displaying 2 images from combobox

2007-03-07 Thread Yeti
On Wed, Mar 07, 2007 at 04:50:40AM -0800, lucks wrote: > { > > GtkWidget *image = lookup_widget(GTK_WIDGET(combobox), > "img_objectdesign"); // name of image > widget:img_objectdesign > >gtk_image_set_from_file (GTK_IMAGE(image), "Pictures/baby.jpg"); > //display first image >