Re: GTK 3 support status

2011-12-05 Thread John Lindgren
On 12/05/2011 02:22 AM, Tristan Van Berkom wrote: On Mon, Dec 5, 2011 at 4:18 PM, Tristan Van Berkomt...@gnome.org wrote: Hi John, I am responsible for a large part of your pain. And I'm also surprised that this code is not working for you. The last time I looked at size negotiation, the

Re: GTK 3 support status

2011-12-05 Thread John Lindgren
It looks to me as though there are 3 separate problems contributing here: 1. GtkLabel does not take into account gtk_widget_set_size_request() when reporting its natural size: https://bugzilla.gnome.org/show_bug.cgi?id=662043 2. Nor does it take into account gtk_label_set_width_chars():

Re: GTK 3 support status

2011-12-05 Thread Tristan Van Berkom
On Mon, Dec 5, 2011 at 10:56 PM, John Lindgren john.lindg...@aol.com wrote: On 12/05/2011 02:22 AM, Tristan Van Berkom wrote: On Mon, Dec 5, 2011 at 4:18 PM, Tristan Van Berkomt...@gnome.org  wrote: Hi John,   I am responsible for a large part of your pain. And I'm also surprised that

Re: GTK 3 support status

2011-12-05 Thread Tristan Van Berkom
On Mon, Dec 5, 2011 at 11:18 PM, John Lindgren john.lindg...@aol.com wrote: It looks to me as though there are 3 separate problems contributing here: 1. GtkLabel does not take into account gtk_widget_set_size_request() when reporting its natural size:

Re: GTK 3 support status

2011-12-05 Thread John Lindgren
Hi Tristan, This makes a bit more sense now. On 12/05/2011 09:27 AM, Tristan Van Berkom wrote: On Mon, Dec 5, 2011 at 11:18 PM, John Lindgrenjohn.lindg...@aol.com wrote: It looks to me as though there are 3 separate problems contributing here: 1. GtkLabel does not take into account

Re: GTK 3 support status

2011-12-05 Thread Costin Chirvasuta
I don't really understand what max-width-chars would be useful for. Can't you set a natural size for a widget instead of a natural max char width? If I want to ellipsize it won't do me any good if ... is the same as I can see there is gtk_set_size_request for setting minimum width,

error in compile gtk3 in OSX

2011-12-05 Thread xiaobo
Hi, All I got a error when I compile gtk3 in OSX . This is log. . . CCLD libgtk-3.la CC queryimmodules.o CCLD gtk-query-immodules-3.0 GISCAN Gtk-3.0.gir Usage: g-ir-scanner [options] sources g-ir-scanner: error: no such option: -x make[4]: *** [Gtk-3.0.gir] Error

string replace function

2011-12-05 Thread Kevin Anthony
I was thinking of making a g_strrpl and g_strnrpl The first one takes (gchar*,gchar*) and returns a gchar* in which the all instances of the second gchar* will be found and replaced in the first gchar*. The second one is the same, but only replaces the first n instances. But what i would like to