Re: setlocale gtk

2009-09-02 Thread David Nečas
On Tue, Sep 01, 2009 at 04:17:37PM -0400, Allin Cottrell wrote: On Tue, 1 Sep 2009, Tomas Soltys wrote: I forgot to write that this behaviour apply only on Windows not on Linux. [...] Recently I have ran into a problem with locale settings. 1. I need my application to have

Re: GtkTreeStore and row deletion

2009-09-02 Thread pwieser
- Kristian Rietveld k...@gtk.org a écrit : I don't fully get the problem you are describing. If I understand it correctly, you have a tree model where each node points to a GObject. Isn't it the case that when a row is destroyed that contains a G_TYPE_OBJECT column, this will unref the

Re: GtkTreeStore and row deletion

2009-09-02 Thread David Nečas
On Wed, Sep 02, 2009 at 02:56:12PM +0200, pwie...@trychlos.org wrote: - Kristian Rietveld k...@gtk.org a écrit : I don't fully get the problem you are describing. If I understand it correctly, you have a tree model where each node points to a GObject. Isn't it the case that when a

How to do a graphic overlay?

2009-09-02 Thread Till Harbaum / Lists
Hi, i'd like to do some graphic overlay. In this particular case i'd like to put two buttons on top of a goocanvas. I tried to hook into the expose event and just draw something to the gdkwindow of the widget. That simply doesn't work. It works with a gtkdrawingarea, but not with the

[patch] constify g_simple_async_result_set_from_error

2009-09-02 Thread Richard Hughes
In PackageKit, I have to explicitly cast in my finish function: static void pk_package_sack_merge_state_finish (PkPackageSackState *state, const GError *error) { ... g_simple_async_result_set_from_error (state-res, (GError*) error); ... } The finish function is passed a const

Re: [patch] constify g_simple_async_result_set_from_error

2009-09-02 Thread David Zeuthen
On Wed, 2009-09-02 at 19:17 +0100, Richard Hughes wrote: In PackageKit, I have to explicitly cast in my finish function: static void pk_package_sack_merge_state_finish (PkPackageSackState *state, const GError *error) { ... g_simple_async_result_set_from_error (state-res,

Re: [patch] constify g_simple_async_result_set_from_error

2009-09-02 Thread Sven Neumann
On Wed, 2009-09-02 at 14:28 -0400, David Zeuthen wrote: Mmmm, wouldn't this break the API? E.g. cause compilation of existing apps to spew warnings. If so, we can't do it. How is the introduction of a compiler warning an API break? Every gcc update introduces some more compiler warnings in

Re: [patch] constify g_simple_async_result_set_from_error

2009-09-02 Thread Steve Frécinaux
David Zeuthen wrote: On Wed, 2009-09-02 at 19:17 +0100, Richard Hughes wrote: In PackageKit, I have to explicitly cast in my finish function: static void pk_package_sack_merge_state_finish (PkPackageSackState *state, const GError *error) { ...

Re: [patch] constify g_simple_async_result_set_from_error

2009-09-02 Thread Richard Hughes
2009/9/2 David Zeuthen da...@fubar.dk: Mmmm, wouldn't this break the API? E.g. cause compilation of existing apps to spew warnings. If so, we can't do it. No, the API doesn't change. g_simple_async_result_set_from_error doesn't ever free the passed error, and the only function that

Re: [patch] constify g_simple_async_result_set_from_error

2009-09-02 Thread David Zeuthen
On Wed, 2009-09-02 at 20:42 +0200, Sven Neumann wrote: On Wed, 2009-09-02 at 14:28 -0400, David Zeuthen wrote: Mmmm, wouldn't this break the API? E.g. cause compilation of existing apps to spew warnings. If so, we can't do it. How is the introduction of a compiler warning an API break?

Re: [patch] constify g_simple_async_result_set_from_error

2009-09-02 Thread Richard Hughes
2009/9/2 Steve Frécinaux nudr...@gmail.com: I don't think it would make the ABI change... No, it won't If anything it makes the ABI more permissive, not less permissive, as const GError will accept either a GError or const GError parameter. Richard.

Re: [patch] constify g_simple_async_result_set_from_error

2009-09-02 Thread Morten Welinder
With this change, it won't break (or add warnings) to any program. It just removes a warning for programs that do not do the explicit cast, and get given a const GError. Really? Take the program below and notice that the constified prototype introduces a warning. If used from C++, that would

Re: [patch] constify g_simple_async_result_set_from_error

2009-09-02 Thread Steve Frécinaux
Richard Hughes wrote: 2009/9/2 Steve Frécinaux nudr...@gmail.com: I don't think it would make the ABI change... No, it won't If anything it makes the ABI more permissive, not less permissive, as const GError will accept either a GError or const GError parameter. Well this doesn't change the

Re: Wrapping Errors

2009-09-02 Thread Simon McVittie
On Thu, 20 Aug 2009 at 22:09:21 -0400, Yu Feng wrote: However, because GError is always accessed by pointers and no GLib program is supposed to statically allocate memory for GError Er, is nobody supposed to allocate GErrors statically? That's the first I'd heard of it... In code using

Re: [patch] constify g_simple_async_result_set_from_error

2009-09-02 Thread Richard Hughes
2009/9/2 Morten Welinder mort...@gnome.org:  void (*f1) (char *) = foo; Why would you ever do that for g_simple_async_result_set_from_error? If you're doing things like that with g_simple_async_result_set_from_error then you're doing it wrong... Richard.

Re: Extended input device breakage

2009-09-02 Thread Joshua A. Andler
Hello, Sorry if this message does not thread properly, I just subscribed to the list to avoid this issue in the future. I'm an Inkscape developer and had noticed strange behavior in Ubuntu Karmic when attempting to use my tablet. I can definitely confirm the issues which result in the input

Re: [patch] constify g_simple_async_result_set_from_error

2009-09-02 Thread Cody Russell
On Wed, 2009-09-02 at 14:28 -0400, David Zeuthen wrote: Unfortunately there's a lot of const incorrectness in the GLib and GTK + stack - maybe we should fix this in GLib3/GTK3 since it's going to be a new ABI. Just a very minor correction, but at the moment there are no plans for GLib 3.

Re: Preferred way of putting title in section

2009-09-02 Thread David Nečas
On Wed, Sep 02, 2009 at 12:46:56AM +0200, Krzesimir Nowak wrote: which way of putting title of section is preferred? 1. `...@title: my title' in SECTION comment in source code. 2. `TITLEmy title/TITLE in package-sections.txt. There is a FIXME in `Documenting section' in gtk-doc manual about

Re: Status of GTK+ on Mac OS X?

2009-09-02 Thread John Pye
Hi Paul Paul Davis wrote: On Mon, Aug 31, 2009 at 8:18 PM, John Pyej...@curioussymbols.com wrote: There's no PyGTK binary available anywhere for OS X. The only route seems to be to use 'jhbuild' and John Ralls' instructions from gtk-osx.sf.net. This seems unnecessarily difficult after the

Re: Status of GTK+ on Mac OS X?

2009-09-02 Thread Tor Lillqvist
Is there a buildbot somewhere running continuous integration testing of GTK+ with the Mac platform? What about other platforms? Is that something that the community is lacking in order to progress this stuff? Depends on what you mean with buildbot. I guess buildbots are usually used to

Re: Why no borders on GTK text, list and treeviews?

2009-09-02 Thread Douwe Vos
You could pack it in a GtkFrame ... ? From: Ken Resander kresan...@yahoo.com To: gtk-list@gnome.org Sent: Tuesday, September 1, 2009 12:01:36 PM Subject: Why no borders on GTK text, list and treeviews? I am using the 'Human' Ubuntu theme available via

Re: GtkCellRendererText wrap with ellipsize and sizing

2009-09-02 Thread Piñeiro
From: Wesley Smith wesley.h...@gmail.com Is there a way to have both wrapping and ellipses when rendering a GtkCellRendererText? I want the cell to wrap the text for up to 2 lines and afterward show ellipses. Also, how can I get a callback when the GtkCellRendererText is resized in order to

Re: Status of GTK+ on Mac OS X?

2009-09-02 Thread Paul Davis
On Wed, Sep 2, 2009 at 2:11 AM, John Pyej...@curioussymbols.com wrote: As I understand it, using jhbuild will allow me to conveniently switch between release tarballs and svn HEAD. It's also ensuring that dependencies are built in correct order, so I'm pretty happy to be using that for the

Re: Status of GTK+ on Mac OS X?

2009-09-02 Thread Javier Jardón
2009/9/2 John Pye j...@curioussymbols.com: Is there a buildbot somewhere running continuous integration testing of GTK+ with the Mac platform? What about other platforms? Is that something that the community is lacking in order to progress this stuff? For other platforms (basically linux), you

Re: GtkCellRendererText wrap with ellipsize and sizing

2009-09-02 Thread Wesley Smith
That's a great idea! Lucky for me the text is static and short so such expensive calculations won't be a big deal. best, wes On Wed, Sep 2, 2009 at 4:26 AM, Piñeiroapinhe...@igalia.com wrote: From: Wesley Smith wesley.h...@gmail.com Is there a way to have both wrapping and ellipses when

Re: Problem running the GTK main loop in a separate thread (different from the main one).

2009-09-02 Thread Michael Torrie
Cristi Cobzarenco wrote: Those are the options that I am using, but it doesn't work for me. I really appreciate the answer, I forgot to say, however, that I'm using MinGW under MS Windows. I now remember seeing somewhere that GTK multithreading only works on the X11 backend, so that might be

Re: Problem running the GTK main loop in a separate thread (different from the main one).

2009-09-02 Thread Michael Torrie
http://irrepupavel.com/documents/gtk/gtk_threads.html ___ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list

Re: Status of GTK+ on Mac OS X?

2009-09-02 Thread John Pye
Hi Tor Tor Lillqvist wrote: Is there a buildbot somewhere running continuous integration testing of GTK+ with the Mac platform? What about other platforms? Is that something that the community is lacking in order to progress this stuff? Depends on what you mean with buildbot. I guess

GTK:ERROR

2009-09-02 Thread Luis Javier Peris
Hello guys, I'm writing here because I don't know where tell this issue. I'm writing an app using pygtk and after calling the run method of a gtk.Dialog, I get the following error: Gtk:ERROR:/build/buildd/gtk+2.0-2.16.1/gtk/gtkcontainer.c:2717:IA__gtk_container_propagate_expose: assertion

Re: New to GTK+ and a question about Combo boxes.

2009-09-02 Thread Peter Juhasz
On Tue, Sep 1, 2009 at 4:29 AM, Steve Manesg...@magpie.com wrote: I'm building a Perk-GTK application on Windows which includes a date element, which is three ComboBoxes clustered together in an Hbox: month, day, year. Since there are several places in the application where a date is added, I

Re: New to GTK+ and a question about Combo boxes.

2009-09-02 Thread Peter Juhasz
On Wed, Sep 2, 2009 at 9:31 PM, Peter Juhaszpeter.juhas...@gmail.com wrote: One more thing... instead of  $E{${element}_year}{'data'}, you could simply write $E{${element}_year}{data}. Sorry, I didn't pay attention, that's not entirely true. Still, $E{${element}._year}{data} would be better in

Re: New to GTK+ and a question about Combo boxes.

2009-09-02 Thread muppet
On Aug 31, 2009, at 10:29 PM, Steve Manes wrote: I'm building a Perk-GTK application on Windows which includes a date element, which is three ComboBoxes clustered together in an Hbox: month, day, year. Since there are several places in the application where a date is added, I built a