"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 sup

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 Yu Feng
I am not skillful on this particular issue, but theoretically NO. Your library will ultimately be linked to an application. The textdomain should be bound by the application. Your library package should be made gettext friendly, aka: (1) state gettext as an requirement in the pkgconfig file (if y

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"); > t

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 th

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 po

Re: "portable" applications

2009-06-24 Thread Dan Kegel
On Wed, Jun 24, 2009 at 5:41 AM, John Zavgren 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 until I > sta

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 t

Re: "portable" applications

2009-06-24 Thread Thomas Stover
Date: Wed, 24 Jun 2009 08:41:50 -0400 From: John Zavgren 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 Glade-3/GTK2/G++ applic

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" pr