Re: A tale of waiting

2009-06-24 Thread Andrew Cowie
On Wed, 2009-06-24 at 10:37 -0400, Matthias Clasen wrote: > Yeah, doing mime type detection async in parallel to the loading has > some downsides too. It is somewhat disconcerting if the icons change > after the fact... Maybe when we don't know what the type is, and are finding out async, we coul

how to compile GTK+ from source code in windows

2009-06-24 Thread Aditi Barua
hello all, for last few days i am trying to compile GTK+ source code from Windows. i have trying run GTK+ from my MinGW and msys tools. I issued command ./configure , make and make install, but it shows dependency error. When I glib from source code it shows that pkg-config is not found, but i have

Re: Make GCancellable subclassable?

2009-06-24 Thread Matthias Clasen
On Wed, Jun 24, 2009 at 3:53 PM, Alexander Larsson wrote: >> It doesn't matter on the desktop of course. But for embedded devices GIO >> is often not useful. Still GCancellable and GInitable would be >> potentially useful. And both class feel semantically closer to GObject >> than to GIO. > > I do

Gtk offscreen rendering

2009-06-24 Thread ecyrbe
Hi everybody, I'm wondering how far we are from the integration of the gtk+ offscreen rendering patch into the master branch? I'm willing to help everyone working on this (and especialy on the win32 backend). I have already suplied some patch in other sections of gtk+, mainly in win32 printing stu

Re: Make GCancellable subclassable?

2009-06-24 Thread Alexander Larsson
On Wed, 2009-06-24 at 20:30 +0200, Sven Neumann wrote: > Hi, > > On Wed, 2009-06-24 at 10:36 +0200, Alexander Larsson wrote: > > > > I'd also welcome if GCancellable and GInitable could be moved to > > > GObject. They are potentially useful outside GIO. > > > > Why can't you not use them from GI

Re: Make GCancellable subclassable?

2009-06-24 Thread Sven Neumann
Hi, On Wed, 2009-06-24 at 10:36 +0200, Alexander Larsson wrote: > > I'd also welcome if GCancellable and GInitable could be moved to > > GObject. They are potentially useful outside GIO. > > Why can't you not use them from GIO? GIO is a general library that has > the same availability as gobject

csw review notes

2009-06-24 Thread Adam Jackson
(Originally sent to alex directly, sending to list for wider distribution) @@ _gdk_display_enable_motion_hints +{ + serial = _gdk_windowing_window_get_next_serial (display); + /* We might not actually generate the next request, so +make sure this triggers always, this may cau

Re: GObject Introspection support for GSList or other types without a GLib type

2009-06-24 Thread Daniel Espinosa
That's true, but is there any data type check when g_object_set/get function is called? If GLib plans to use G_TYPE_POINTER for GSList, GError, gshort, and any other data type without G_TYPE* macro defined, then just tell it on the documentation: "if you (programer) want to use a not defined type

How to get scroll bar infromation in C?

2009-06-24 Thread frank zhang
Hello, I am writing a program in C to get the scroll bar information for an existing application such as a text file or a webpage opened in GNOME desktop. If the existing application window is the currently active window and it has scroll bars, my program needs to be able to move the mouse po

Re: A tale of waiting

2009-06-24 Thread Matthias Clasen
On Wed, Jun 24, 2009 at 9:05 AM, Benjamin Otte wrote: > > So it seems content-type sniffing incurs a 20% penalty for > g_file_query_info() if it takes the fast path, and is devastating if > it doesn't. Both of that is not nice and it'd be nice if populating > the file chooser would not be blocked

Re: A tale of waiting

2009-06-24 Thread Benjamin Otte
On Wed, Jun 24, 2009 at 4:39 AM, Matthias Clasen wrote: > As Bastien already pointed out, this is just not true. Getting the > mime type does not use sniffing in most cases. /usr/bin is a the worst > case where extension-based mimetype detection breaks down, but it > should do fine in your homedir

Re: A tale of waiting

2009-06-24 Thread Alberto Ruiz
2009/6/23 Bastien Nocera : > On Tue, 2009-06-23 at 22:16 +0200, Benjamin Otte wrote: >> I have been on a quest to improve performance of the file chooser >> lately. This post is about this process: what I measured, what I >> learned and what I patched. > >>  * Getting the mime type >> Getting the

Re: A tale of waiting

2009-06-24 Thread Soeren Sandmann
Matthias Clasen writes: > > Next I implemented sorting. Because I use an array, I can use qsort(), > > which is fast. I had thought about switching to GSequence to get ever > > closer to GtkListStore, but I did not do that, and one of the reasons > > is that GSequence uses insertion sort, which i

Re: Make GCancellable subclassable?

2009-06-24 Thread Richard Hughes
On Wed, Jun 24, 2009 at 9:34 AM, Alexander Larsson wrote: > On Fri, 2009-06-19 at 10:29 +0100, Richard Hughes wrote: >> I've attached a patch to make it public, and use a >> _GCancellablePrivate struct, which solves my problem nicely. > > Commited to master. Legend, thanks. Richard. _

Re: Make GCancellable subclassable?

2009-06-24 Thread Alexander Larsson
On Fri, 2009-06-19 at 22:02 +0200, Sven Neumann wrote: > Hi, > > On Fri, 2009-06-19 at 10:29 +0100, Richard Hughes wrote: > > > It would be really great to wrap GCancellable in another object, in my > > case PkCancellable and add the extra functionality there. > > Unfortunately _GCancellable is p

Re: Make GCancellable subclassable?

2009-06-24 Thread Alexander Larsson
On Fri, 2009-06-19 at 10:29 +0100, Richard Hughes wrote: > In PackageKit, the packaging backend is able to control what part of > each transaction is cancellable so we can do things like set the > cancel GUI button sensitive or insensitive at appropriate times. For > instance loading the rpmdb is n

Re: G_SOCKET_FAMILY_UNIX conditional define?

2009-06-24 Thread Alexander Larsson
On Fri, 2009-05-29 at 19:34 +0200, Hans Breuer wrote: > While trying to update the GLib build with msvc I sumbled over > the conditional define of G_SOCKET_FAMILY_UNIX. > > But later the value is used unconditionally in gsocket.c > which breaks my build. > > The whole introduction of defining the

Re: client side windows - request for testing and reviewing

2009-06-24 Thread Alexander Larsson
On Fri, 2009-06-19 at 13:04 -0400, Matthias Clasen wrote: > On Wed, Jun 17, 2009 at 7:19 AM, Alexander Larsson wrote: > > > It would be very nice if we could merge this soon. However, to do that > > we need more testing and people to look at the code. As things stand > > right now I've gotten esse