how to process only some GTK events and leave the others in the queue

2008-12-28 Thread Francesco Montorsi
Hi, is it possible to process only some specific events from the GTK/GDK event queue and leave the others in the queue so they can be processed later by the main loop? I'll try to explain it better: I have a GTK-based app which runs the gtk_main() in its void main(). However at a certain

Re: Asyncronous life helper (Was: EggDBus)

2008-12-28 Thread David Zeuthen
On Sat, 2008-12-27 at 20:35 +0100, Alexander Larsson wrote: On Sat, 2008-12-27 at 04:21 -0500, Freddie Unpenstein wrote: This is a side-topic, raised by developments in handling DBus, but something I feel is worth asking... Is there any mechanism for making working with asynchronous stuff

Re: how to process only some GTK events and leave the others in the queue

2008-12-28 Thread Francesco Montorsi
Tristan Van Berkom ha scritto: On Sun, Dec 28, 2008 at 6:45 AM, Francesco Montorsi Is it possible? Hi, for some odd cases you can use: http://library.gnome.org/devel/gdk/stable/gdk-Events.html#gdk-event-put i.e. by pumping the events out of the event queue yourself, and putting the ones

gtk clipboard word 2003

2008-12-28 Thread ChilliMac
Hello, I'm developing a python application written in python and using gtk. I need to copy a gtk image and paste it into Microsoft Word 2003. Pasting to Excel 2003, WordPad, Paint and so on, works perfect, but not to Word 2003. When i try to paste the image there, just nothing happens. This

Re: Asyncronous life helper (Was: EggDBus)

2008-12-28 Thread Alexander Larsson
On Sat, 2008-12-27 at 15:19 -0500, David Zeuthen wrote: GFuture *future; future = g_future_get (foo-pending_call); g_object_set_data (future, other-stuff, other_stuff, g_object_unref); and the GFuture object would be unreffed when the pending call is finished. I'd like to avoid having

Open Source survey

2008-12-28 Thread Hendrik Kaju
Dear developers My name is Hendrik Kaju and I am a high school student and an open source enthusiast from Estonia. As a part of my school project, I am conducting a survey on open source software development (how developing OSS is related to a developer's day job, etc). It is located at

g_locale_from_utf8 and minus sign

2008-12-28 Thread Allin Cottrell
When my app displays numerical output, I've been using a real minus sign (U+2212) if the current font supports this (as checked by pango), since it looks better than the usual hyphen-as-minus. The minus sign displays correctly within GTK, but I've noticed that if the app is running on, e.g. an

Re: A problem about programming with Gtk+

2008-12-28 Thread Richard Boaz
Hi, You're doing a couple of things wrong in the setup: 1) you are not using any gdk() routines in threads, therefore, you do not need to call gtk_threads_init(). (call all gtk_ and gdk_ routines only from routines executing as part of the main loop and strange behaviours are minimized.) 2)

Re: A problem about programming with Gtk+

2008-12-28 Thread Richard Boaz
that bit of documentation is a bit confusing and definitely misleading. what it essentially says is that if you make calls to gtk_ or gdk_ then the thread calls are required. but if all calls to gtk_ and gdk_ are executed within routines executing as part of the main loop, thread calls are not

I would like GtkVPaned whose can manage more than 2 panes

2008-12-28 Thread KLEIN Stéphane
Hi, I would like a widget container with two or more panes. The divisions between the panes are adjustable by the user by dragging a handle. To summarize I would like GtkVPaned whose can manage more than two pane. Is there one widget like it in one other project ? If not, how can I do that ?

Re: I would like GtkVPaned whose can manage more than 2 panes

2008-12-28 Thread Milosz Derezynski
You can put multiple VPaneds one into another. On Sun, Dec 28, 2008 at 7:22 PM, KLEIN Stéphane steph...@harobed.orgwrote: Hi, I would like a widget container with two or more panes. The divisions between the panes are adjustable by the user by dragging a handle. To summarize I would like

Re: I would like GtkVPaned whose can manage more than 2 panes

2008-12-28 Thread KLEIN Stéphane
Le Sun, 28 Dec 2008 19:38:07 +0100, Milosz Derezynski a écrit : You can put multiple VPaneds one into another. Yes, I can but its behavior isn't what I want. Example : import pygtk pygtk.require('2.0') import gtk window = gtk.Window(gtk.WINDOW_TOPLEVEL) vpaned2 =

Re: Mixing XS with Gtk2::TreeStore

2008-12-28 Thread Emmanuel Rodriguez
Sorry for the delay. I was trying to commit all the code into SVN so I could share it. muppet wrote: Alright, this is a different beast from how i interpreted your original message. Context helps. :-) Sorry for now sharing the code earlier, but I had it in an internal SVN repository. I