simple internalisation (was: Nobody ever used GTK_STOCK_FILE?)

2010-01-12 Thread Pavel A. da Mek
For example, having "File" stock item doesn't make much sense, since files usually carry their own name and this is what should be displayed. Most programs have the "File" menu item in the tool bar. To create menu items from stock items is a simple way to present translated labels for all langu

Re: Nobody ever used GTK_STOCK_FILE?

2010-01-12 Thread Tadej Borovšak
Hello. > How they are expected to be used when they cannot be found by > gtk_stock_lookup? > > Should not be added at least >  { GTK_STOCK_FILE, NC_("Stock label", "_File"), 0, 0, GETTEXT_PACKAGE }, > and maybe also >  { GTK_STOCK_DIRECTORY, NC_("Stock label", "Folder"), 0, 0, GETTEXT_PACKAGE > },

Re: TreeView button

2010-01-12 Thread David Nečas
On Tue, Jan 12, 2010 at 12:04:10PM +0800, minguo niu wrote: >How can i put a regular button in a GtkTreeView ? http://mail.gnome.org/archives/gtk-app-devel-list/2009-December/msg00100.html In short: you can't. Yeti ___ gtk-app-devel-list m

Nobody ever used GTK_STOCK_FILE?

2010-01-12 Thread Pavel A. da Mek
I wonder why GTK_STOCK_COLOR_PICKER GTK_STOCK_DIALOG_AUTHENTICATION GTK_STOCK_DIRECTORY GTK_STOCK_DND GTK_STOCK_DND_MULTIPLE GTK_STOCK_FILE GTK_STOCK_MISSING_IMAGE are not included in the array GtkStockItem builtin_items in the source file gtkstock.c How they are expected to be used when they c

Re: GtkTreeView in VBox

2010-01-12 Thread Rhishikesh Joshi
Hi, I have also faced a similar situation in which case i need to pack a treeview inside a VBox. I would not mind the treeview apis not working but the packing is something i am looking to keep. The scrolling of the VBox works fine for smaller sizes of the TreeView. But when the treeview consis

Re: about main event loop

2010-01-12 Thread Dov Grobgeld
No, you don't create threads to handle events. Instead you connect to callbacks through g_signal_connect(). But in order to get an intelligent reply from this list, you should provide a complete compilable program that exhibit the problem that you experience. Regards, Dov On Tue, Jan 12, 2010 at

about main event loop

2010-01-12 Thread Zhang Wei
hello, I don't know how to deal with the signal when I clicked the icon on taskbar with right button of the mouse the program runs ok, but it gives the warnings in the console: GLib-WARNING **: g_main_context_prepare() called recursively from within a source's check() or prepare() member. GLib-WAR