regarding GtkImageMenuItem

2006-03-26 Thread prabhakar kushwaha
hi
my problem is regarding this codes...

icon = gtk_image_new_from_file(file_menu_new.png);
file_item = gtk_menu_item_new_with_label(File);
gtk_menu_bar_append( GTK_MENU_BAR(menu_bar),file_item);
file_menu = gtk_menu_new();
menu_file_new = gtk_image_menu_item_new_with_label(New);
gtk_image_menu_item_set_image
(GTK_IMAGE_MENU_ITEM(menu_file_new),gtk_image_new_from_file(menu_file_new.png));

wenever i use this code in normal .c file it works fine. no error is thrown.
but when i try to use this code in KDevelop it show undefined refrences to
the followings
1. gtk_image_new_from_file
2.gtk_image_menu_item_new_with_label
3.GTK_IMAGE_MENU_ITEM
4.gtk_image_menu_item_set_image

i have checked it to GTK+2.6 API Documentation. it is right
i am using KDevelop 3.0
please help me...


--
Prabhakar
IV Year
B.tech (Computer Science)
I. E. T. Lucknow
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


move data out of a treemodel to file

2006-03-26 Thread Martijn Bos
Hi all,

Just wondering: Is there an easy way to put data in from a treemodel
to file and vice versa?

--
Met vriendelijk groeten,

Martijn Bos
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Gthreads

2006-03-26 Thread Fernando ApesteguĂ­a
Hi,

I'm porting an application from pthread semantic to GThreads framework. I
used pthread_cancel(pid) to kill a thread, does exists something similar in
gthreads?

I've read
http://mail.gnome.org/archives/gtk-devel-list/2003-February/msg00082.htmland
it appears it doesn't exist.
So, if I performed a pthread_cancellation from a callback, how do I perform
the same with gthreads?

Best regards!
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


drag and drop

2006-03-26 Thread prabhakar kushwaha
hi
i have gone through whole gtk tutorial.
but  i cann't able to find any example of drap and drop.
if anyone send me one i will be highly obliged..

--
Prabhakar
IV Year
B.tech (Computer Science)
I. E. T. Lucknow
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Re: drag and drop

2006-03-26 Thread Michael Torrie
On Mon, 2006-03-27 at 10:18 +0530, prabhakar kushwaha wrote:
 hi
 i have gone through whole gtk tutorial.
 but  i cann't able to find any example of drap and drop.
 if anyone send me one i will be highly obliged..

This dates back a couple of years, but the APIs are still very similar:

http://wolfpack.twu.net/docs/gtkdnd/

additionally, the official tutorial also demonstrates this:
http://www.gtk.org/tutorial/c1920.html

google also reveals
http://live.gnome.org/GnomeLove/DragNDropTutorial

 
 --
 Prabhakar
 IV Year
 B.tech (Computer Science)
 I. E. T. Lucknow
 ___
 gtk-app-devel-list mailing list
 gtk-app-devel-list@gnome.org
 http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
 
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list