double click

2009-04-20 Thread Chuck Crisler
Can anyone help with some tips on constructing XEvents to signal a mouse double-click? Down-Up-Down-Up (4 XEvents) without a MouseMove? TIA, Chuck Crisler ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org

Pass more widgets as gpointer.

2009-04-20 Thread Jens Hansen
Hello All. I'm quite new to C, but have done some gtk programming in perl. I've been looking for answers on the web, and in various tutorials, without any luck. My question is how to pass more widgets as a gpointer, to a callback function. (in C ) For instance if a OK button, has to read the

Re: Pass more widgets as gpointer.

2009-04-20 Thread Tadej Borovšak
Hello. The common solution to this problem is to create a structure containing all of the widgets you may need in callbacks and than pass pointer to it around. Some sample code can be found here: http://gtkforums.com/viewtopic.php?t=2913#8098 Hope this helps a bit. Bye 2009/4/20 Jens Hansen

Re: Pass more widgets as gpointer.

2009-04-20 Thread Vlad Volodin
Hello, Jens The other way is to make your widgets global. Especially, me? I use GOjects, and always pass self object. For example, I inherit main window object from GtkWindow and later in widgets definition pass itself to callback. Also, you can use g_object_set_data for storing some useful

Re: glib dbus bindings notes

2009-04-20 Thread David Zeuthen
On Tue, 2009-03-03 at 13:19 -0500, David Zeuthen wrote: Regarding your other comments, I largely agree with them and this mail would be too long if I replied to all of them. So, to sum up, the main suggestions you are making are - Rework low-level bits of EggDBus so it's like

Re: GLib plans for the next cycle

2009-04-20 Thread Allin Cottrell
On Sun, 19 Apr 2009, David Zeuthen wrote: On Sun, 2009-04-19 at 20:05 -0400, Allin Cottrell wrote: I've recently been trying to purge my GTK app of deprecated stuff, and I tried replacing gnome_url_show() with gtk_show_uri(). No go; on invoking gtk_show_uri() I get operation not

Re: GLib plans for the next cycle

2009-04-20 Thread Alexander Larsson
On Mon, 2009-04-20 at 10:43 -0400, Allin Cottrell wrote: On Sun, 19 Apr 2009, David Zeuthen wrote: I could be wrong, but just briefly looking at the code it looks like there is no default implementation of GDesktopAppInfoLookup in GIO, there's only one in GVfs (that looks up stuff in

Re: GLib plans for the next cycle

2009-04-20 Thread Christian Dywan
Am Mon, 20 Apr 2009 17:00:41 +0200 schrieb Alexander Larsson al...@redhat.com: On Mon, 2009-04-20 at 10:43 -0400, Allin Cottrell wrote: On Sun, 19 Apr 2009, David Zeuthen wrote: I could be wrong, but just briefly looking at the code it looks like there is no default implementation of

Re: GLib plans for the next cycle

2009-04-20 Thread David Zeuthen
On Mon, 2009-04-20 at 18:31 +0200, Christian Dywan wrote: What about using xdg-open if GVfs is not available OR if gconf is not available? That's a tiny script that can be easily installed anywhere, even on less modern boxes. That would give you a nice circular dependency if xdg-open(1) is

Re: GLib plans for the next cycle

2009-04-20 Thread Cosimo Cecchi
On Mon, 2009-04-20 at 12:45 -0400, David Zeuthen wrote: That would give you a nice circular dependency if xdg-open(1) is ever ported to use GIO [1] which is not at all unlikely... David [1] : under GNOME, xdg-open(1) uses gnome-open(1) which AFAICT uses gnome-vfs2... gnome-open

Re: GLib plans for the next cycle

2009-04-20 Thread Alexander Larsson
On Mon, 2009-04-20 at 12:29 -0400, Allin Cottrell wrote: On Mon, 20 Apr 2009, Alexander Larsson wrote: On Mon, 2009-04-20 at 10:43 -0400, Allin Cottrell wrote: As it's currently coded gtk_show_uri is bound to fail if GVfs is not present. But more than that: it'll fail even if GVfs

Re: GLib plans for the next cycle

2009-04-20 Thread Allin Cottrell
On Mon, 20 Apr 2009, Alexander Larsson wrote: On Mon, 2009-04-20 at 12:29 -0400, Allin Cottrell wrote: On Mon, 20 Apr 2009, Alexander Larsson wrote: On Mon, 2009-04-20 at 10:43 -0400, Allin Cottrell wrote: As it's currently coded gtk_show_uri is bound to fail if GVfs is not

Re: GLib plans for the next cycle

2009-04-20 Thread Alexander Larsson
On Mon, 2009-04-20 at 14:36 -0400, Allin Cottrell wrote: On Mon, 20 Apr 2009, Alexander Larsson wrote: On Mon, 2009-04-20 at 12:29 -0400, Allin Cottrell wrote: On Mon, 20 Apr 2009, Alexander Larsson wrote: On Mon, 2009-04-20 at 10:43 -0400, Allin Cottrell wrote: As it's

Re: GLib plans for the next cycle

2009-04-20 Thread Allin Cottrell
On Mon, 20 Apr 2009, Alexander Larsson wrote: 00, Allin Cottrell wrote: On Mon, 20 Apr 2009, Alexander Larsson wrote: On Mon, 2009-04-20 at 12:29 -0400, Allin Cottrell wrote: On Mon, 20 Apr 2009, Alexander Larsson wrote: On Mon, 2009-04-20 at 10:43 -0400, Allin Cottrell

Re: GLib plans for the next cycle

2009-04-20 Thread Allin Cottrell
On Mon, 20 Apr 2009, Alexander Larsson wrote: gvfs needs a session bus, not a system bus, so you're falling back to a non-gvfs system. Thus no http support. OK, I suppose I can get this working on my own system, but my main point is: why does GTK include a function such as gtk_show_uri which

Re: GLib plans for the next cycle

2009-04-20 Thread Allin Cottrell
On Sun, 19 Apr 2009, Havoc Pennington wrote: I think my arguments are compelling. If someone else thinks differently, they can say so, and explain their reasoning... The bottom line is that dbus has an MIT/X11-equivalent license, with the addition of a *weaker* patent clause than LGPL/GPL

Re: GLib plans for the next cycle

2009-04-20 Thread Havoc Pennington
Hi, On Mon, Apr 20, 2009 at 10:31 PM, Allin Cottrell cottr...@wfu.edu wrote: On Sun, 19 Apr 2009, Havoc Pennington wrote: The license was written by a lawyer and is perfectly sane. Sane and written by a lawyer are surely orthogonal to desirability from the point of view of free software.