GtkBuilder property binding syntax

2014-06-20 Thread Victor A. Santos
Which is the syntax for property binding in UI definition files ? I've tried: property name=label bind-source=cross_low_adj bind-property=value / but: input:3:3535 'bind-source' is not a valid attribute of property Thanks ___ gtk-app-devel-list

Re: GtkBuilder property binding syntax

2014-06-20 Thread Phillip Wood
On 20/06/14 16:23, Victor A. Santos wrote: Which is the syntax for property binding in UI definition files ? I've tried: property name=label bind-source=cross_low_adj bind-property=value / but: input:3:3535 'bind-source' is not a valid attribute of property If you want property label

Re: GtkBuilder property binding syntax

2014-06-20 Thread Emmanuele Bassi
hi; that's not entirely correct: GtkBuilder now allows binding properties directly in the XML: It is also possible to bind a property value to another object's property value using the attributes bind-source to specify the source object of the binding, bind-property to specify the source

Polar drawing widget, gearwheel drawing

2014-06-20 Thread Arne Pagel
dear all, I have some Gtk Applications (in C) and now I want to add a functionality for displaying kind of gearwheels with different number oft teeth. Basically this should be an visual support for parameter editing, maybe as a wizard. The gearwheels doesn't have to be very fancy, but I need

Re: GtkBuilder property binding syntax

2014-06-20 Thread Phillip Wood
On 20/06/14 17:04, Emmanuele Bassi wrote: hi; that's not entirely correct: GtkBuilder now allows binding properties directly in the XML: It is also possible to bind a property value to another object's property value using the attributes bind-source to specify the source object of

Re: Polar drawing widget, gearwheel drawing

2014-06-20 Thread Chris Moller
+1 on cairo. He's a doc page that covers the basics: http://cairographics.org/documentation/ On 06/20/14 15:27, John Coppens wrote: On Fri, 20 Jun 2014 19:54:28 +0200 Arne Pagel a...@pagelnet.de wrote: Point is that I don't want to spend a lot of time in this feature, so I am searching

Re: GtkBuilder property binding syntax

2014-06-20 Thread Victor A. Santos
Thanks for help. I'll write the binding in the code, maybe when Gtk releases 3.14 I migrate to binding in .ui. Thanks again :) On Fri, 2014-06-20 at 19:28 +0100, Phillip Wood wrote: On 20/06/14 17:04, Emmanuele Bassi wrote: hi; that's not entirely correct: GtkBuilder now allows

Re: Polar drawing widget, gearwheel drawing

2014-06-20 Thread David Marceau
This will match up with your requirements: https://code.google.com/p/bridgegl/ https://code.google.com/p/bridgegl/source/browse/trunk/application.cpp If the above is too noisy/featureful, then look at the python versions below, then look at the .cc/.cpp later. For static 2d:

Re: Library introspection

2014-06-20 Thread Lionel Landwerlin
Have you tried to play with the --identifier-prefix= and --symbol-prefix= options for g-ir-scanner? something like : --identifier-prefix=DMAP --identifier-prefix=DAAP --identifier-prefix=DPAP --symbol-prefix=dmap --symbol-prefix=daap --symbol-prefix=dpap Hopefully, the subnames don't clash. -

Re: Heads-up: Potentially breaking changes to the GDK drawing model pushed

2014-06-20 Thread Paul Davis
On Fri, Jun 20, 2014 at 9:00 PM, Jasper St. Pierre jstpie...@mecheye.net wrote: As part of these changes, gtk_widget_set_double_buffered was deprecated and removed. Yay! I tested with some local big applications like Ardour and the GNOME applications, but don't have a GTK+3 build of

Re: Heads-up: Potentially breaking changes to the GDK drawing model pushed

2014-06-20 Thread A. Walton
On Fri, Jun 20, 2014 at 6:00 PM, Jasper St. Pierre jstpie...@mecheye.net wrote: To better support Wayland with fewer copies and less drawing artifacts, I've pushed some potentially breaking changes to GDK, namely around gdk_cairo_create and gdk_window_begin_paint_region.

Re: Heads-up: Potentially breaking changes to the GDK drawing model pushed

2014-06-20 Thread Jasper St. Pierre
On Fri, Jun 20, 2014 at 11:57 PM, A. Walton awal...@gnome.org wrote: On Fri, Jun 20, 2014 at 6:00 PM, Jasper St. Pierre jstpie...@mecheye.net wrote: To better support Wayland with fewer copies and less drawing artifacts, I've pushed some potentially breaking changes to GDK, namely around

Re: Heads-up: Potentially breaking changes to the GDK drawing model pushed

2014-06-20 Thread Jasper St. Pierre
On Fri, Jun 20, 2014 at 9:30 PM, Paul Davis p...@linuxaudiosystems.com wrote: On Fri, Jun 20, 2014 at 9:00 PM, Jasper St. Pierre jstpie...@mecheye.net wrote: As part of these changes, gtk_widget_set_double_buffered was deprecated and removed. Yay! I tested with some local big

Re: Heads-up: Potentially breaking changes to the GDK drawing model pushed

2014-06-20 Thread A. Walton
On Fri, Jun 20, 2014 at 9:01 PM, Jasper St. Pierre jstpie...@mecheye.net wrote: On Fri, Jun 20, 2014 at 11:57 PM, A. Walton awal...@gnome.org wrote: On Fri, Jun 20, 2014 at 6:00 PM, Jasper St. Pierre jstpie...@mecheye.net wrote: To better support Wayland with fewer copies and less drawing

Re: Heads-up: Potentially breaking changes to the GDK drawing model pushed

2014-06-20 Thread Jasper St. Pierre
Thanks for your use case. I've added a runtime warning for you! Let me know if you hit it and are having trouble solving it -- there's not much in the way of recommendations about how to solve it if it's causing a bug, since the code that was there before was removed.