Re: gtk-2-24-win32 branch merged into gtk-2-24

2012-01-31 Thread Dieter Verfaillie
On Sun, 29 Jan 2012 21:48:51 +0100, Murray Cumming wrote: On Thu, 2012-01-19 at 12:53 +0100, Dieter Verfaillie wrote: I maintain http://www.optionexplicit.be/projects/gnome-windows/GTK+3/ which is built from ATK, Pango, GLib, GTK+, GObject-Introspection, etc master branches. For some modules

[introspection] struct without copy constructor

2012-01-31 Thread Picca Frédéric-Emmanuel
Hello, I'am trying to use the gobject-introspection to add binding to one of my C library. I use the g_boxed_type_register_static, to register object and it works great. But now I am facing a issue with struct without copy constructor. so I tryed to put NULL for the copy method of the

Re: [introspection] struct without copy constructor

2012-01-31 Thread Steve Frécinaux
On 01/31/2012 04:22 PM, Picca Frédéric-Emmanuel wrote: so my question is 'simple' what is the recommanded way if I want to add a struct without copy constructor. You don't. If you wish to do so, then you might have two situations: - refcounted structures: then add a copy function which is

Re: [introspection] struct without copy constructor

2012-01-31 Thread Picca Frédéric-Emmanuel
Le Tue, 31 Jan 2012 15:45:46 +0100, Steve Frécinaux nudr...@gmail.com a écrit : - refcounted structures: then add a copy function which is actually a ref function, and a free function which is an unref function. not my case - statically allocated structures: then set the copy and free

GTK+ design meetup in Brno

2012-01-31 Thread Matthias Clasen
Hey, some idea that came up in theme-related irc chatter today: Considering we have a GTK+ hackfest in Brno Feb 17-21, and a bunch of GNOME design people are in town that weekend as well, we should arrange for an hour or so of free-form discussion along the toolkit design boundary. Possible

Reviewing the multitouch branch

2012-01-31 Thread Matthias Clasen
There is a ton of stuff in the multitouch branch, and I really want to make progress on getting all this good stuff merged at the hackfest, so I think we need to start reviewing the branch before we get together. Since there's so much stuff in there, I'll try to split this up in a series of mails,

Re: [introspection] struct without copy constructor

2012-01-31 Thread Steve Frécinaux
On 01/31/2012 04:57 PM, Picca Frédéric-Emmanuel wrote: In that case the copy method should return a value, what about NULL ? You should rather return the object itself (same for the refcount case). Glib doesn't have to know what you return is actually the same instance as before. If

Re: [introspection] struct without copy constructor

2012-01-31 Thread Picca Frédéric-Emmanuel
Le Tue, 31 Jan 2012 16:58:37 +0100, Steve Frécinaux nudr...@gmail.com a écrit : You should rather return the object itself (same for the refcount case). Glib doesn't have to know what you return is actually the same instance as before. I tryed with the object himself but, I got a double

Multitouch review 1: event capture

2012-01-31 Thread Matthias Clasen
API: GtkWidget::captured-event signal GTK_CAPTURED_EVENT_{HANDLED,STORE} gtk_widget_release_captured_events General idea: The ::captured-event signal is emitted top-down, starting at the toplevel (somewhat different in the presence of grabs) all the way down to the widget that received the

Re: [introspection] struct without copy constructor

2012-01-31 Thread Steve Frécinaux
On 01/31/2012 06:06 PM, Picca Frédéric-Emmanuel wrote: I tryed with the object himself but, I got a double free error, at the end. the binding do not check that object are identical (save adress) and try to free it two times. Is it a bug ? This is because you have a free function which...

gir stability

2012-01-31 Thread Ryan Lortie
It seems like we've been avoiding talking about this particular issue for a while, but I think it's time we got a bit more serious about it. https://bugzilla.gnome.org/show_bug.cgi?id=657385 This bug introduced a 'Rename to:' field on gtk_menu_popup_for_device(), which of course, is an API

Re: gir stability

2012-01-31 Thread Ryan Lortie
On Tue, 2012-01-31 at 14:40 -0500, Ryan Lortie wrote: existed in Gtk 3.2 and was bound as such. Python applications[1] Sorry: [1] https://bugs.launchpad.net/bugs/923171 (Ubuntu software centre) ___ gtk-devel-list mailing list

Re: gir stability

2012-01-31 Thread Morten Welinder
This seems like a minor issue compared to GtkGrid 3.0 vs GtkGrid 3.2 incompatibilities. A could of attributes got swapped in-between those two versions. Morten ___ gtk-devel-list mailing list gtk-devel-list@gnome.org

Re: Multitouch review 1: event capture

2012-01-31 Thread Benjamin Otte
Matthias Clasen matthias.clasen at gmail.com writes: General questions: - How does that integrate with EventControllers? This is more of a thing to think about than a question, but I think it's interesting that this works well in a world where we have EventController objects and run on top of

Re: gir stability

2012-01-31 Thread Alberto Ruiz
I'd say that the entire API stability of bindings is not a minor issue vs. the stability of a new widget. 2012/1/31 Morten Welinder mort...@gnome.org This seems like a minor issue compared to GtkGrid 3.0 vs GtkGrid 3.2 incompatibilities. A could of attributes got swapped in-between those two

Re: gir stability

2012-01-31 Thread Matthias Clasen
On Tue, Jan 31, 2012 at 2:40 PM, Ryan Lortie de...@desrt.ca wrote: What makes this particular incident of note is that popup_for_device() existed in Gtk 3.2 and was bound as such.  Python applications[1] started using it, and then, with this commit, it disappeared. We need to figure out

Re: Multitouch review 1: event capture

2012-01-31 Thread Matthias Clasen
On Tue, Jan 31, 2012 at 2:59 PM, Benjamin Otte o...@gnome.org wrote: Matthias Clasen matthias.clasen at gmail.com writes: Going into detail on your mail: API:   GtkWidget::captured-event signal   GTK_CAPTURED_EVENT_{HANDLED,STORE}   gtk_widget_release_captured_events - What events are

Re: gir stability

2012-01-31 Thread Matthias Clasen
On Tue, Jan 31, 2012 at 4:15 PM, Ryan Lortie de...@desrt.ca wrote: There may also be scope for helping us cope better on the introspection side with things like renames: we could keep the old name in a deprecated state, for example. That seems like a very natural solution for this case,

Multitouch review 2: press-and-hold

2012-01-31 Thread Matthias Clasen
API: GtkWidget::press-and-hold GTK_PRESS_AND_HOLD_{QUERY,TRIGGER,CANCEL} GTK_STYLE_CLASS_PRESS_AND_HOLD style class GtkSettings::gtk-press-and-hold-timeout setting This feature has a long history going back to 2005 and Hildon [1][2]. The way it works is that ::press-and-hold is emitted upon

Re: gir stability

2012-01-31 Thread Benjamin Otte
Ryan Lortie desrt at desrt.ca writes: We need to figure out what our story is with respect to annotations. 'Rename to:' is an extreme example (since an entire function, as named, disappears) but we can easily cause problems just as serious with changes that look a lot more innocent (like

Re: Box packing vs table packing

2012-01-31 Thread Manuel Ferrero
Il 27/01/2012 15.07, Tadej Borovšak ha scritto: A (maybe not so) simple question: why should I use one style of packing instead of the other? I fail to see the problem here. That's because mine it's not a problem, I was just curious about some I-can't-see angle. If you have your

Re: errors regarding the code

2012-01-31 Thread David Nečas
On Tue, Jan 31, 2012 at 12:53:18PM +0530, manjunath rgm wrote: The shell script alone is working fine, but if I give more inputs through the text entry then it's not getting passed form Gtk program to shell program The code does not contain anything that would fetch the contents of the entry

How to know my GTK+ version?

2012-01-31 Thread Manuel Ferrero
I downloaded the all-in-one bundle for Win32, version 2.24.8, unzipped it and copied it in my disk, then I added the bin path to PATH variable. Now I can compile and run a simple program. I read on some webpage how to know my GTK version with the following command line: pkg-config

Re: How to know my GTK+ version?

2012-01-31 Thread David Nečas
On Tue, Jan 31, 2012 at 11:31:59AM +0100, Manuel Ferrero wrote: I downloaded the all-in-one bundle for Win32, version 2.24.8, unzipped it and copied it in my disk, then I added the bin path to PATH variable. Now I can compile and run a simple program. I read on some webpage how to know my

Re: How to know my GTK+ version?

2012-01-31 Thread Dieter Verfaillie
On Tue, 31 Jan 2012 11:31:59 +0100, Manuel Ferrero wrote: I downloaded the all-in-one bundle for Win32, version 2.24.8, unzipped it and copied it in my disk, then I added the bin path to PATH variable. Changing system or user PATH env vars through the control panel is a *very* bad idea. No

Re: How to know my GTK+ version?

2012-01-31 Thread Dieter Verfaillie
On Tue, 31 Jan 2012 11:31:59 +0100, Manuel Ferrero wrote: I read on some webpage how to know my GTK version with the following command line: pkg-config --variable=gtk_binary_version gtk+-2.0 Ah, noticed you might want to use --modversion instead of --variable=gtk_binary_version in addition to

Re: How to know my GTK+ version?

2012-01-31 Thread Manuel Ferrero
Il 31/01/2012 12.06, David Nečas ha scritto: Gtk binary version defines the ABI version for extension modules. So it does not increase unless the ABI changes. Run pkg-config --modversion gtk+-2.0 to get the Gtk+ version. Thanks, it returns 2.24.8 -- Regards, Manuel Ferrero RD

Re: How to know my GTK+ version?

2012-01-31 Thread Manuel Ferrero
Il 31/01/2012 12.09, Dieter Verfaillie ha scritto: On Tue, 31 Jan 2012 11:31:59 +0100, Manuel Ferrero wrote: I downloaded the all-in-one bundle for Win32, version 2.24.8, unzipped it and copied it in my disk, then I added the bin path to PATH variable. Changing system or user PATH env vars

Re: How to know my GTK+ version?

2012-01-31 Thread Dieter Verfaillie
On Tue, 31 Jan 2012 12:30:52 +0100, Manuel Ferrero wrote: Il 31/01/2012 12.09, Dieter Verfaillie ha scritto: The most flexible solution is to build yourself a wrapper script (.bat or .cmd) or in case you use MinGW/MSYS a shell script, that exports PATH, PKG_CONFIG_PATH and other search paths

Drawing over Desktop application

2012-01-31 Thread Valter Nogueira
Does someone know an application that allows us to use Linux Desktop as a canvas - drawing over it? Or some easy way to implement such feature? Thanks Valter ___ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list

Re: Drawing over Desktop application

2012-01-31 Thread Mario Kemper
You might want to have a look at any of the gesture recognition programs available. E.g. xstroke, easystroke, gestikk. Am 31.01.2012 22:42 schrieb Valter Nogueira val...@fastway.com.br: ___ gtk-list mailing list gtk-list@gnome.org