Re: Decorating scales

2009-01-19 Thread Matthias Clasen
On Tue, Jan 6, 2009 at 12:31 AM, Matthias Clasen matthias.cla...@gmail.com wrote: I'd like to get this functionality into 2.16, if nobody objects, but I'm not entirely sure that I have managed to come up with the best possible api for this yet: To wrap up this discussion: I just committed a

Re: Decorating scales

2009-01-06 Thread Andrew Cowie
On Tue, 2009-01-06 at 00:31 -0500, Matthias Clasen wrote: Over the Christmas vacation, I spent a day adding marks to scales. I can't speak to the implementation, but this is a lovely initiative. I've long wished for something like this. ++ As a related matter; do you think that there would be

Re: Decorating scales

2009-01-06 Thread Matthias Clasen
2009/1/6 Andrew Cowie and...@operationaldynamics.com: On Tue, 2009-01-06 at 00:31 -0500, Matthias Clasen wrote: Over the Christmas vacation, I spent a day adding marks to scales. I can't speak to the implementation, but this is a lovely initiative. I've long wished for something like this.

Re: Decorating scales

2009-01-06 Thread Matthias Clasen
On Tue, Jan 6, 2009 at 12:55 AM, Tristan Van Berkom t...@gnome.org wrote: On Tue, Jan 6, 2009 at 12:41 AM, Yu Feng rainwood...@gmail.com wrote: Hi, If GtkRange were a gtk container perhaps using gtk_container_xxx with child_properties will be an alternative. GtkContainer also has bettern

Re: Decorating scales

2009-01-06 Thread Tristan Van Berkom
On Tue, Jan 6, 2009 at 10:29 AM, Matthias Clasen matthias.cla...@gmail.com wrote: On Tue, Jan 6, 2009 at 12:55 AM, Tristan Van Berkom t...@gnome.org wrote: On Tue, Jan 6, 2009 at 12:41 AM, Yu Feng rainwood...@gmail.com wrote: Hi, If GtkRange were a gtk container perhaps using

Re: Decorating scales

2009-01-06 Thread Benjamin Berg
On Tue, 2009-01-06 at 13:07 -0500, Tristan Van Berkom wrote: Some requirements we had: - allow the knob to be an rgba pixbuf (we would just composite it when it changed position in the trough, could we achieve nice round-edged sliders with a child widget knob ? that would be ideal I

Re: Decorating scales

2009-01-06 Thread Mathias Hasselmann
Am Dienstag, den 06.01.2009, 10:29 -0500 schrieb Matthias Clasen: On Tue, Jan 6, 2009 at 12:55 AM, Tristan Van Berkom t...@gnome.org wrote: On Tue, Jan 6, 2009 at 12:41 AM, Yu Feng rainwood...@gmail.com wrote: Hi, If GtkRange were a gtk container perhaps using gtk_container_xxx with

Re: Decorating scales

2009-01-06 Thread Stefan Kost
Matthias Clasen schrieb: Over the Christmas vacation, I spent a day adding marks to scales. The motivation for this came from the new sound preferences capplet, which uses a GtkHScale for balance control. Jon did a nice job of adding Left/Right labels (see the screenshot), but what is really

Re: Decorating scales

2009-01-06 Thread Matthias Clasen
On Tue, Jan 6, 2009 at 3:40 PM, Mathias Hasselmann mathias.hasselm...@gmx.de wrote: Weren't the GtkCellRenderer/GtkCellLayout interfaces written exactly for stuff like those marks? No, cell renderers are for rendering data in rectangular cells, like in tree or icon views. They are not meant to

Re: Decorating scales

2009-01-06 Thread Matthias Clasen
On Tue, Jan 6, 2009 at 5:06 PM, Stefan Kost enso...@hora-obscura.de wrote: I would like that a lot. One thing slightly related is that I wonder if the GtkAdjustment* could be hinted to the theme engines. E.g. for a Panorma function the adjustment would be -100 ... 100 or 1.0 ... 1.0. Right

Decorating scales

2009-01-05 Thread Matthias Clasen
Over the Christmas vacation, I spent a day adding marks to scales. The motivation for this came from the new sound preferences capplet, which uses a GtkHScale for balance control. Jon did a nice job of adding Left/Right labels (see the screenshot), but what is really missing here is an easy to hit

Re: Decorating scales

2009-01-05 Thread Matthias Clasen
Of course, I managed to forget the most important piece. The patch can be found in http://bugzilla.gnome.org/show_bug.cgi?id=565656 ___ gtk-devel-list mailing list gtk-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-devel-list

Re: Decorating scales

2009-01-05 Thread Yu Feng
Hi, If GtkRange were a gtk container perhaps using gtk_container_xxx with child_properties will be an alternative. GtkContainer also has bettern granularity - the programmers can modify/remove each marker individually. Unfortunately it isn't a Container. Regards, Yu On Tue, 2009-01-06 at 00:31

Re: Decorating scales

2009-01-05 Thread Tristan Van Berkom
2009/1/6 Matthias Clasen matthias.cla...@gmail.com: Over the Christmas vacation, I spent a day adding marks to scales. The motivation for this came from the new sound preferences capplet, which uses a GtkHScale for balance control. Jon did a nice job of adding Left/Right labels (see the

Re: Decorating scales

2009-01-05 Thread Matthias Clasen
On Tue, Jan 6, 2009 at 12:51 AM, Tristan Van Berkom t...@gnome.org wrote: I wonder if the mark itself should not just be a child widget, this current api doesnt allow for combination of simple separator like marks with text or icons. Also it should be possible to create an icon mark

Re: Decorating scales

2009-01-05 Thread A. Walton
On Tue, Jan 6, 2009 at 12:51 AM, Tristan Van Berkom t...@gnome.org wrote: 2009/1/6 Matthias Clasen matthias.cla...@gmail.com: Over the Christmas vacation, I spent a day adding marks to scales. The motivation for this came from the new sound preferences capplet, which uses a GtkHScale for