GtkAboutDialog close

2008-08-15 Thread Roland Roberts
Okay, I'm a newbie with Gtk. I'm designing with glade-3. I've got an annoying problem with my about dialog. I connected the help-about menu item to a callback that pops up the dialog. The Credits and License buttons work fine. The Close button does nothing. I've seen a bug report in one

Re: GtkAboutDialog close

2008-08-15 Thread Roland Roberts
Roland Roberts wrote: How can I get the Close button to just hide the dialog so I don't have to do the run/hide thing in the callback? Ack, I posted this after fighting with it all day and then found my answer right after posting. Apparently, the correct signal is to attach a callback to the

Re: When to call g_thread_init(), again...

2008-08-15 Thread Brian J. Tarricone
On Fri, 15 Aug 2008 10:58:59 +0300 Tor Lillqvist wrote: The documentation for g_thread_init() says (in the stable branch): You must call g_thread_init() before executing any other GLib functions in a threaded GLib program. [..] The real use case reported on gtk-list looked much more

Question on DnD

2008-08-15 Thread Halton Huo
Hi, I'm wring a DnD feature, most knowledge is from http://live.gnome.org/GnomeLove/DragNDropTutorial I want to check whether action is GDK_ACTION_MOVE during drag-begin phase, if yes, end this DnD. Unfortunately, I found that context-action is always 0 during drag-begin even SHIFT is hold.

Re: When to call g_thread_init(), again...

2008-08-15 Thread Andrew W. Nosenko
On Fri, Aug 15, 2008 at 11:51 AM, Brian J. Tarricone [EMAIL PROTECTED] wrote: Yes to that last bit. If it really truly does matter that g_thread_init() be called before other glib functions, then no *library* should *ever* call g_thread_init(). If a library needs it, it should check

Re: When to call g_thread_init(), again...

2008-08-15 Thread Tor Lillqvist
For example, Glib have g_mem_set_vtable() that alose requires to be first. Whee, so GLib documentation is internally inconsistent then. What a mess. Current wording of the g_thread_init() documentation doesn't introduces such ambiguility at least... It doesn't? I think You must call

Re: When to call g_thread_init(), again...

2008-08-15 Thread Paul Davis
On Fri, 2008-08-15 at 15:45 +0300, Tor Lillqvist wrote: For example, Glib have g_mem_set_vtable() that alose requires to be first. Whee, so GLib documentation is internally inconsistent then. What a mess. Current wording of the g_thread_init() documentation doesn't introduces such

Re: When to call g_thread_init(), again...

2008-08-15 Thread Tor Lillqvist
If your program uses threads (or other libraries that use threads), then you must call g_thread_init() before calling any other GLib function It's not using threads that is the key point here. Calling g_thread_init() is. That already changes some GLib functions to work in different ways,

Re: When to call g_thread_init(), again...

2008-08-15 Thread Christian Dywan
Am Fri, 15 Aug 2008 15:45:29 +0300 schrieb Tor Lillqvist [EMAIL PROTECTED]: For example, Glib have g_mem_set_vtable() that alose requires to be first. Whee, so GLib documentation is internally inconsistent then. What a mess. Current wording of the g_thread_init() documentation doesn't

Re: When to call g_thread_init(), again...

2008-08-15 Thread Andrew W. Nosenko
On Fri, Aug 15, 2008 at 3:45 PM, Tor Lillqvist [EMAIL PROTECTED] wrote: For example, Glib have g_mem_set_vtable() that alose requires to be first. Whee, so GLib documentation is internally inconsistent then. What a mess. Current wording of the g_thread_init() documentation doesn't introduces

Re: When to call g_thread_init(), again...

2008-08-15 Thread Paul Davis
On Fri, 2008-08-15 at 16:05 +0300, Tor Lillqvist wrote: If your program uses threads (or other libraries that use threads), then you must call g_thread_init() before calling any other GLib function It's not using threads that is the key point here. Calling g_thread_init() is. That

Re: Functions Removed Between 2.12.9 2.13.5

2008-08-15 Thread BJörn Lindqvist
2008/8/15 Matt Keenan [EMAIL PROTECTED]: Hi, Just doing a functions diff between Gtk 2.12.9 (Gnome 2.22) and Gtk 2.13.5 (Current for 2.24), and I've noticed about 60 function calls have been removed. See the (now removed) comment in gtkfilesystem.h: /* This is a semi-private header; it is

Re: When to call g_thread_init(), again...

2008-08-15 Thread Patrick Hallinan
On Fri, 2008-08-15 at 10:58 +0300, Tor Lillqvist wrote: The documentation for g_thread_init() says (in the stable branch): You must call g_thread_init() before executing any other GLib functions in a threaded GLib program. Is there a good reason to not compile separate threaded and

Need quick help: Let the print output of all GTK apps be PDF

2008-08-15 Thread Till Kamppeter
Hi, on the Printing Summit in Atlanta in 2006 it was decided that the standard print job format should be PDF and not PostScript any more, as this has many advantages for the printing workflow, especially reliability and quality. Recently the needed CUPS filters for the PDF printing

Re: When to call g_thread_init(), again...

2008-08-15 Thread Milosz Derezynski
Also, is there any specific reason *not* to call g_thread_init() in glib's init routine by default anyway? Any penalties? 2008/8/15 Patrick Hallinan [EMAIL PROTECTED] On Fri, 2008-08-15 at 10:58 +0300, Tor Lillqvist wrote: The documentation for g_thread_init() says (in the stable branch):

Re: Need quick help: Let the print output of all GTK apps be PDF

2008-08-15 Thread Matthias Clasen
On Fri, Aug 15, 2008 at 12:39 PM, Till Kamppeter [EMAIL PROTECTED] wrote: Hi, on the Printing Summit in Atlanta in 2006 it was decided that the standard print job format should be PDF and not PostScript any more, as this has many advantages for the printing workflow, especially reliability

Re: When to call g_thread_init(), again...

2008-08-15 Thread Milosz Derezynski
I meant a function marked with the constructor attribute. 2008/8/15 Matthias Clasen [EMAIL PROTECTED] 2008/8/15 Milosz Derezynski [EMAIL PROTECTED]: Also, is there any specific reason *not* to call g_thread_init() in glib's init routine by default anyway? Any penalties? What init routine

Re: gtk.HTML class nonexistent [was: Re: [pygtk] Computing optimum size of gtkhtml2.View]

2008-08-15 Thread Christian Dywan
Am Fri, 15 Aug 2008 19:20:10 + (UTC) schrieb Luke Kenneth Casson Leighton [EMAIL PROTECTED]: folks, hi, just an update: i was advised kindly to look at pywebkitgtk - which i downloaded and compiled from source, this morning. _wow_ am i dead impressed with this project! the demo browser

Re: When to call g_thread_init(), again...

2008-08-15 Thread Havoc Pennington
I'd argue mandatory init functions are more or less always wrong, they all train-wreck in a similar way ... unfortunately every G-inspired library seems to gratuitously have them. If the init function has no args, then it should be possible for the library to just deal with it and call it

Re: When to call g_thread_init(), again...

2008-08-15 Thread Milosz Derezynski
I forgot g_thread_init takes args, so nvm the constructor version. 2008/8/15 Havoc Pennington [EMAIL PROTECTED] I'd argue mandatory init functions are more or less always wrong, they all train-wreck in a similar way ... unfortunately every G-inspired library seems to gratuitously have them.

Re: gtk.HTML class nonexistent [was: Re: [pygtk] Computing optimum size of gtkhtml2.View]

2008-08-15 Thread Paul Davis
On Fri, 2008-08-15 at 19:20 +, Luke Kenneth Casson Leighton wrote: it's _essential_ that GTK have similar such functionality. implementing these features outside of the core gtk widget set - using pygtk2 alone - registers on the awkward to literally impossible scale. i haven't looked at

Re: When to call g_thread_init(), again...

2008-08-15 Thread Brian J. Tarricone
Havoc Pennington wrote: If the init function does have arguments, then you end up with a requirement that all libraries and modules calling it must call it with the same args ... which isn't possible ... so init functions with arguments are broken unless the *app* and never a library will

Re: When to call g_thread_init(), again...

2008-08-15 Thread Sven Herzberg
Am Freitag, den 15.08.2008, 15:06 +0200 schrieb Christian Dywan: Am Fri, 15 Aug 2008 15:45:29 +0300 schrieb Tor Lillqvist [EMAIL PROTECTED]: I think both is rather open for missunderstandings actually, before and after the improvement of the g_thread_init documentation. g_mem_set_vtable

Re: When to call g_thread_init(), again...

2008-08-15 Thread Havoc Pennington
Hi, On Fri, Aug 15, 2008 at 5:55 PM, Brian J. Tarricone [EMAIL PROTECTED] wrote: This breaks for libraries that require locking in threaded programs but (obviously) not in non-threaded programs. You can get into a situation where you call a lock() without threads initialised, then something

Re: When to call g_thread_init(), again...

2008-08-15 Thread Andrew Cowie
On Fri, 2008-08-15 at 01:51 -0700, Brian J. Tarricone wrote: On Fri, 15 Aug 2008 10:58:59 +0300 Tor Lillqvist wrote: ... Should ORBit2 g_error() out if it notices that it wants to use threads but g_thread_init() has not been called, instead of calling it itself? Yes to that last bit. If

Re: When to call g_thread_init(), again...

2008-08-15 Thread Andrew Cowie
On Fri, 2008-08-15 at 19:09 +0200, Milosz Derezynski wrote: Also, is there any specific reason *not* to call g_thread_init() in glib's init routine by default anyway? Any penalties? As was pointed out, there's no GLib init routine, but from the standpoint of a prominent library that we use a

Re: When to call g_thread_init(), again...

2008-08-15 Thread Tristan Van Berkom
2008/8/16 Andrew Cowie [EMAIL PROTECTED]: [...] At the very least across the rest of the GNOME stack, but if it's a behaviour change we want to encourage not just there but beyond, I wonder how could we go about incenting library authors to adopt this pattern? I would expect an author of a