Re: The new tooltips API in 5 minutes [Was: Re: Whats coming in GTK+ 2.12, continued]

2007-06-15 Thread Tim Janik
On Thu, 14 Jun 2007, Damon Chaplin wrote: On Tue, 2007-06-12 at 13:59 +0200, Kristian Rietveld wrote: 2. When you need a tooltip with a little more fancy contents, like adding an image, or you want the tooltip to have different contents per GtkTreeView row or cell, you will have to

Re: The new tooltips API in 5 minutes [Was: Re: Whats coming in GTK+ 2.12, continued]

2007-06-15 Thread Tim Janik
On Thu, 14 Jun 2007, BJörn Lindqvist wrote: On 6/12/07, Kristian Rietveld [EMAIL PROTECTED] wrote: On Sun, Jun 10, 2007 at 10:38:44AM +0200, Murray Cumming wrote: There's also a new GtkTooltip object. Could we have some more information about how this should be used and if it replaces any

Re: GtkBuilder Public API - Last call

2007-06-15 Thread Tim Janik
On Wed, 13 Jun 2007, Johan Dahlin wrote: Samuel Cormier-Iijima wrote: gint gtk_builder_enum_from_string(GType type, const char *string); Just curious, but why do you have gtk_builder_enum_from_string when

Pango-warning

2007-06-15 Thread Jeevan
Hi, Here I am trying to run a simple Gtk+ program, I am getting error as follows: Can you plz give me suggestion.. *8 linux:~ # gcc base.c -o base `pkg-config --cflags --libs gtk+-2.0` linux:~ # ./base (base:4262): Pango-WARNING **: No builtin

Re: Pango-warning

2007-06-15 Thread Behdad Esfahbod
On Fri, 2007-06-15 at 01:22 -0400, Jeevan wrote: Hi, Here I am trying to run a simple Gtk+ program, I am getting error as follows: Can you plz give me suggestion.. First, helps if you attach the test program when you are asking for help. Next, gtk-devel-list is not the right list for such

Re: Pango-warning

2007-06-15 Thread Alberto Ruiz
2007/6/15, Jeevan [EMAIL PROTECTED]: Hi, Here I am trying to run a simple Gtk+ program, I am getting error as follows: Can you plz give me suggestion.. This list its mean to be used by the Gtk+ development, and not for app development. The gtk general discussion list mihgt me more

Re: Pango-warning

2007-06-15 Thread Mathias Hasselmann
Am Donnerstag, den 14.06.2007, 22:22 -0700 schrieb Jeevan: Hi, Here I am trying to run a simple Gtk+ program, I am getting error as follows: Can you plz give me suggestion.. This list is for development of Gtk+ itself, the list for developments using Gtk+ is [EMAIL PROTECTED]

Re: GtkBuilderConnectFunc and signal tag

2007-06-15 Thread Tim Janik
On Wed, 13 Jun 2007, Johan Dahlin wrote: Tristan Van Berkom wrote: Let's do something a little cleaner and more flexible; typedef void (*GtkBuilderConnectFunc) (GtkBuilder *builder, const gchar *handler_name,

Re: GtkBuilderConnectFunc and signal tag

2007-06-15 Thread Johan Dahlin
Tim Janik wrote: [..] Would that be enough? why? what is the type specification good for if it's not an object? and, didn't an earlier variant of your code match object=button to some button object from the builder file? so then, the straight forward mapping of the GSignal API would be:

Re: GtkBuilder Public API - Last call

2007-06-15 Thread Johan Dahlin
Tim Janik wrote: On Wed, 13 Jun 2007, Johan Dahlin wrote: Samuel Cormier-Iijima wrote: gint gtk_builder_enum_from_string(GType type, const char *string); Just curious, but why do you have

Re: GtkBuilder Public API - Last call

2007-06-15 Thread Tristan Van Berkom
On Thu, 2007-06-14 at 15:32 +0100, Damon Chaplin wrote: I think its quite important here to not repeat one of the the most obvious mistakes of glade/libglade, swapping the signal based on the fact that an object was specified is confusing - it also rules out the use case of specifying a

Re: GtkBuilder Public API - Last call

2007-06-15 Thread Tristan Van Berkom
On Thu, 2007-06-14 at 11:55 -0300, Johan Dahlin wrote: Damon Chaplin wrote: On Wed, 2007-06-13 at 11:49 -0400, Tristan Van Berkom wrote: Anyway, my point here is not wrt code that exists already in Gtk+, I am of the opinion that GContainer iface is missing, and that objects in general

Re: GtkBuilder Public API - Last call

2007-06-15 Thread Johan Dahlin
Havoc Pennington wrote: Hi, Johan Dahlin wrote: Havoc Pennington wrote: [...] A possible convenience API could be to have a global singleton builder or a hash of per-file builders and then something like: I reported this as; http://bugzilla.gnome.org/show_bug.cgi?id=447969 -- Johan

Re: GtkBuilder Public API - Last call

2007-06-15 Thread Johan Dahlin
Johan Dahlin wrote: Morten Welinder wrote: user_type and user_data which I proposed doesn't make too much sense, it's also difficult to support since you can't (AFAICT) use a GValue as user data. It would be marginally useful for providing constant user data like... * Strings: oink *

Re: The new tooltips API in 5 minutes [Was: Re: Whats coming in GTK+ 2.12, continued]

2007-06-15 Thread Emmanuele Bassi
On Tue, 2007-06-12 at 13:59 +0200, Kristian Rietveld wrote: 1. If everything you need is a tooltip displaying a simple text string, with or without Pango markup, the only thing you have to do is just setting the tooltip-markup property. just a small add-on, fresh from the commit

Re: The new tooltips API in 5 minutes [Was: Re: Whats coming in GTK+ 2.12, continued]

2007-06-15 Thread Damon Chaplin
On Fri, 2007-06-15 at 11:25 +0200, Tim Janik wrote: On Thu, 14 Jun 2007, Damon Chaplin wrote: On Tue, 2007-06-12 at 13:59 +0200, Kristian Rietveld wrote: 2. When you need a tooltip with a little more fancy contents, like adding an image, or you want the tooltip to have different

Re: GtkBuilder Public API - Last call

2007-06-15 Thread Damon Chaplin
On Thu, 2007-06-14 at 11:55 -0300, Johan Dahlin wrote: Damon Chaplin wrote: On Wed, 2007-06-13 at 11:49 -0400, Tristan Van Berkom wrote: Anyway, my point here is not wrt code that exists already in Gtk+, I am of the opinion that GContainer iface is missing, and that objects in general

Re: The new tooltips API in 5 minutes [Was: Re: Whats coming in GTK+ 2.12, continued]

2007-06-15 Thread Tim Janik
On Sat, 16 Jun 2007, Damon Chaplin wrote: On Fri, 2007-06-15 at 11:25 +0200, Tim Janik wrote: please read Kris' description again. if you set ::tooltip-markup, ::has-tooltip is set automatically, and you don't need to worry about it. this is *not* the case if you connect to ::query-tooltip

GTK+ 2.11.3 released

2007-06-15 Thread Matthias Clasen
GTK+ 2.11.3 is now available for download at: ftp://ftp.gtk.org/pub/gtk/2.11/ http://ftp.gnome.org/pub/GNOME/sources/gtk+/2.11/ gtk+-2.11.3.tar.bz2 md5sum: 49c53959df501a48c2cba834d1993508 gtk+-2.11.3.tar.gzmd5sum: 84b6c30467cc089ef1dcffe1d1f51906 This is the fourth development release

Re: Disable ALL keybindings for a specific widgit?

2007-06-15 Thread Eduardo M KALINOWSKI
On 6/14/07, Justin Stallard [EMAIL PROTECTED] wrote: Hi, I've looked through the tutorial, faq, API doc, and even google and I can't seem to find out if there's some way to unbind all the keybindings associated with a particular widgit. Is there? What I want to have is this: A GtkEntry

linux vs. win32: gdk_threads_enter behaving different

2007-06-15 Thread Felix Kater
Could anyone please explain this behaviour: Imagine a simple window with 1 box and 2 buttons in it. If you press the first button, the second is destroyed, and a newly created button packed into the box. This *works* on linux and win32 (gtk+-2.10.13). Now, let button 1 start a thread which does

Re: linux vs. win32: gdk_threads_enter behaving different

2007-06-15 Thread Kevin DeKorte
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Felix Kater wrote: Could anyone please explain this behaviour: Imagine a simple window with 1 box and 2 buttons in it. If you press the first button, the second is destroyed, and a newly created button packed into the box. This *works* on linux

Re: linux vs. win32: gdk_threads_enter behaving different

2007-06-15 Thread Felix Kater
Kevin DeKorte [EMAIL PROTECTED] wrote: - From my limited GTK experience I have found that g_idle_add always seems to work better than using gtk_threads_enter/leave. Yes, the reason why idle functions work in any case is most probably because they are running in the same thread as where gtk was

Re: linux vs. win32: gdk_threads_enter behaving different

2007-06-15 Thread Jonathan Winterflood
I too am rather intrigued by this problem... I found this: http://research.operationaldynamics.com/blogs/andrew/software/gnome-desktop/gtk-thread-awareness.html and I'm wondering: is your gtk_main() surrounded by gdk_threads_enter/leave. I imagine this missing would break in linux too, but just

Re: linux vs. win32: gdk_threads_enter behaving different

2007-06-15 Thread Tor Lillqvist
Felix Kater writes: So, my conclusion: On the contrast to linux, unter win32 there is no way to use gdk_threads_enter() to synchronize between different threads. Are you sure that it's gdk_threads_enter itself that blocks? Then your first problem might be that you don't call gdk_threads_enter

Re: linux vs. win32: gdk_threads_enter behaving different

2007-06-15 Thread Jonathan Winterflood
Ok, forget that. http://developer.gnome.org/doc/API/2.0/gdk/gdk-Threads.html 4th paragraph in Description Unfortunately the above holds with the X11 backend only. With the Win32 backend, GDK calls should not be attempted from multiple threads at all. so If you want to do multithreading on win32,

Re: Disable ALL keybindings for a specific widgit?

2007-06-15 Thread Justin Stallard
On 6/15/07, Eduardo M KALINOWSKI [EMAIL PROTECTED] wrote: On 6/14/07, Justin Stallard [EMAIL PROTECTED] wrote: Hi, I've looked through the tutorial, faq, API doc, and even google and I can't seem to find out if there's some way to unbind all the keybindings associated with a particular

GTK+ 2.11.3 released

2007-06-15 Thread Matthias Clasen
GTK+ 2.11.3 is now available for download at: ftp://ftp.gtk.org/pub/gtk/2.11/ http://ftp.gnome.org/pub/GNOME/sources/gtk+/2.11/ gtk+-2.11.3.tar.bz2 md5sum: 49c53959df501a48c2cba834d1993508 gtk+-2.11.3.tar.gzmd5sum: 84b6c30467cc089ef1dcffe1d1f51906 This is the fourth development release