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
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
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
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
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);
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
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
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
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
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
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
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
On Fri, 2009-06-19 at 13:04 -0400, Matthias Clasen wrote:
On Wed, Jun 17, 2009 at 7:19 AM, Alexander Larssonal...@redhat.com wrote:
It would be very nice if we could merge this soon. However, to do that
we need more testing and people to look at the code. As things stand
right now I've
On Fri, 2009-06-19 at 10:29 +0100, Richard Hughes wrote:
In PackageKit, the packaging backend is able to control what part of
each transaction is cancellable so we can do things like set the
cancel GUI button sensitive or insensitive at appropriate times. For
instance loading the rpmdb is not
On Fri, 2009-06-19 at 22:02 +0200, Sven Neumann wrote:
Hi,
On Fri, 2009-06-19 at 10:29 +0100, Richard Hughes wrote:
It would be really great to wrap GCancellable in another object, in my
case PkCancellable and add the extra functionality there.
Unfortunately _GCancellable is private
On Wed, Jun 24, 2009 at 9:34 AM, Alexander Larssonal...@redhat.com wrote:
On Fri, 2009-06-19 at 10:29 +0100, Richard Hughes wrote:
I've attached a patch to make it public, and use a
_GCancellablePrivate struct, which solves my problem nicely.
Commited to master.
Legend, thanks.
Richard.
On Fri, 2009-05-29 at 19:34 +0200, Hans Breuer wrote:
While trying to update the GLib build with msvc I sumbled over
the conditional define of G_SOCKET_FAMILY_UNIX.
But later the value is used unconditionally in gsocket.c
which breaks my build.
The whole introduction of defining the
Matthias Clasen matthias.cla...@gmail.com writes:
Next I implemented sorting. Because I use an array, I can use qsort(),
which is fast. I had thought about switching to GSequence to get ever
closer to GtkListStore, but I did not do that, and one of the reasons
is that GSequence uses
2009/6/23 Bastien Nocera had...@hadess.net:
On Tue, 2009-06-23 at 22:16 +0200, Benjamin Otte wrote:
I have been on a quest to improve performance of the file chooser
lately. This post is about this process: what I measured, what I
learned and what I patched.
snip
* Getting the mime type
On Wed, Jun 24, 2009 at 4:39 AM, Matthias Clasen
matthias.cla...@gmail.com wrote:
As Bastien already pointed out, this is just not true. Getting the
mime type does not use sniffing in most cases. /usr/bin is a the worst
case where extension-based mimetype detection breaks down, but it
should
On Wed, Jun 24, 2009 at 9:05 AM, Benjamin Otteo...@gnome.org wrote:
So it seems content-type sniffing incurs a 20% penalty for
g_file_query_info() if it takes the fast path, and is devastating if
it doesn't. Both of that is not nice and it'd be nice if populating
the file chooser would not
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
That's true, but is there any data type check when g_object_set/get function
is called?
If GLib plans to use G_TYPE_POINTER for GSList, GError, gshort, and any
other data type without G_TYPE* macro defined, then just tell it on the
documentation: if you (programer) want to use a not defined type
On Wed, 2009-06-24 at 20:30 +0200, Sven Neumann wrote:
Hi,
On Wed, 2009-06-24 at 10:36 +0200, Alexander Larsson wrote:
I'd also welcome if GCancellable and GInitable could be moved to
GObject. They are potentially useful outside GIO.
Why can't you not use them from GIO? GIO is a
On Wed, 2009-06-24 at 10:37 -0400, Matthias Clasen wrote:
Yeah, doing mime type detection async in parallel to the loading has
some downsides too. It is somewhat disconcerting if the icons change
after the fact...
Maybe when we don't know what the type is, and are finding out async, we
could
25 matches
Mail list logo