How to internationalize a shared library

2009-06-24 Thread Zhihai Wang
Dear All, I know the way how to internationalize an application, could anyone tell me how to do with a shared library I'm going to distribute to 3rd party applications? -- Best Regards, Zhihai Wang ___ gtk-app-devel-list mailing list

Re: GString in GtkTreeStore columns

2009-06-24 Thread Konrad Anton
Hello all, problem solved (thanks, Tadej!). For the archive: If a column of a GtkTreeStore is defined as G_TYPE_STRING, then gtk_tree_store_set will make a copy of the string contents. string = g_string_new( Sample text ); /* Next call will free any string that was present in first column

portable applications

2009-06-24 Thread John Zavgren
Greetings: I wrote a Glade-3/GTK2/G++ application on a ubuntu machine, and the application works great. In fact it works so well that my colleagues want to use it. Ujnfortunately, they are not using ubuntu (and neither was I until I started developing my GUI. I chose ubuntu because it seemed to

Re: How to internationalize a shared library

2009-06-24 Thread Zhihai Wang
Anyone knows? Should I also do following as what I did to internationalize an application? setlocale(LC_ALL, ); bindtextdomain(GETTEXT_PACKAGE, LOCALEDIR); bind_textdomain_codeset(GETTEXT_PACKAGE, UTF-8); textdomain(GETTEXT_PACKAGE); Will there be any problem to call these APIs

Re: How to internationalize a shared library

2009-06-24 Thread jvetterli
On Wed, Jun 24, 2009 at 08:48:23PM +0800, Zhihai Wang wrote: Anyone knows? Should I also do following as what I did to internationalize an application? setlocale(LC_ALL, ); bindtextdomain(GETTEXT_PACKAGE, LOCALEDIR); bind_textdomain_codeset(GETTEXT_PACKAGE, UTF-8);

Re: How to set a window filled the whole screen when we start the window?

2009-06-24 Thread Michael Torrie
donglongchao wrote: Thank you very much.That is just what I need. I am not very familiar with the API manual. I always program with a web browser open showing the API docs. Although they often lack documentation and examples (they are generated from the source code), they at least document the

How to get scroll bar infromation in C?

2009-06-24 Thread frank zhang
Hello, I am writing a program in C to get the scroll bar information for an existing application such as a text file or a webpage opened in GNOME desktop. If the existing application window is the currently active window and it has scroll bars, my program needs to be able to move the mouse

Re: portable applications

2009-06-24 Thread Dan Kegel
On Wed, Jun 24, 2009 at 5:41 AM, John Zavgrenj...@zavgren.com wrote: Greetings: I wrote a Glade-3/GTK2/G++ application on a ubuntu machine, and the application works great. In fact it works so well that my colleagues want to use it. Ujnfortunately, they are not using ubuntu (and neither was I

Re: portable applications

2009-06-24 Thread Michael Torrie
John Zavgren wrote: My intuition tells me that there must be a better way to build an application that will run on more than one Linux machine. Is there a simple way to statically link the esoteric aspects of my GUI You can use the ldd command to see what your binary is linking to. The

[Glib] - Can't store two values in a same GNode

2009-06-24 Thread ccamogli
Hi, I'm new in this list, so I don't know if it's the correct one. Here is my problem: I want to store more than a value in a GNode node, and so, for doing that I use a struct. I can store the values, but when I try to find them again using g_node_find_child, It doesn't work. # Here's

Re: portable applications

2009-06-24 Thread Thomas Stover
Date: Wed, 24 Jun 2009 08:41:50 -0400 From: John Zavgren j...@zavgren.com Subject: portable applications To: gtk-app-devel-list@gnome.org Message-ID: 8bea388a0906240541p1bc747c7x174a9b35828b5...@mail.gmail.com Content-Type: text/plain; charset=ISO-8859-1 Greetings: I wrote a

About the GtkTreeView editable cell

2009-06-24 Thread vanevan
Hi all: I want to know how to set the GtkTreeView cell renderer editable property per-row.I have read the GtkTreeView tutorial, and it says that: *You can either do this on a per-row basis (which allows you to set each single cell either editable or not) by connecting the editable