Querying GtkTextView layout before display

2009-01-05 Thread Evin Robertson
I'm trying to implement margin images using GtkTextView (like img align=left in HTML). My current approach is to create an HBox containing the image as the first child and the text in a second GtkTextView as the second child and insert this in an anchor. I call gtk_widget_set_size_request on the

GLib 2.19 4 released

2009-01-05 Thread Matthias Clasen
GLib 2.19.4 is now available for download at: ftp://ftp.gtk.org/pub/glib/2.19/ http://download.gnome.org/sources/glib/2.19/ glib-2.19.4.tar.bz2 md5sum: 1eefaadb07e66df90418fe7cc775e9f7 glib-2.19.4.tar.gz md5sum: 3b1f5486c46a3b3e9c43ddef65e2271a This is the fourth development release

Re: How to use Quarks?

2009-01-05 Thread Yu Feng
On Mon, 2009-01-05 at 18:43 +1100, Andrew Cowie wrote: On Sat, 2009-01-03 at 10:40 -0500, Yu Feng wrote: If you are accessing data member(g_object_set_data) frequently you could use quarks to accelerate the looking up process(g_object_set_qdata). On Sun, 2009-01-04 at 14:41 +0200, Stefan

Re: How to use Quarks?

2009-01-05 Thread Murray Cumming
On Mon, 2009-01-05 at 18:43 +1100, Andrew Cowie wrote: ie, it sounds like we should switch to g_object_set_qdata() for our one and only use of GObject data; we request and set that value a *lot*, and I'm always pleased to use faster code paths. The key we use is already a static string anyway.

GLib 2.19 4 released

2009-01-05 Thread Matthias Clasen
GLib 2.19.4 is now available for download at: ftp://ftp.gtk.org/pub/glib/2.19/ http://download.gnome.org/sources/glib/2.19/ glib-2.19.4.tar.bz2 md5sum: 1eefaadb07e66df90418fe7cc775e9f7 glib-2.19.4.tar.gz md5sum: 3b1f5486c46a3b3e9c43ddef65e2271a This is the fourth development release

GtkAction and GIcon

2009-01-05 Thread Jannis Pohlmann
Hey, wow, this is actually my first post to this list, after working with GTK+ for more than three years. I'm currently porting Thunar (the Xfce file manager) to GIO/GVfs. Thunar has its own data structures for MIME handlers at the moment but for obvious reasons I'd like to make it use GAppInfo

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

screen-changed signal emitted before constructor is invoked?

2009-01-05 Thread Yu Feng
Dear developers, I created an Widget and overrode the constructor of the GObject interface to initialize private members. Then I listened to screen-changed signal of the widget. in the signal handler a private member was accessed; The private member was not properly initialized when the first