Simple draw question

2007-05-04 Thread Kevin DeKorte
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I have a situation where I need to highlight an eventbox when a user enters it and unhighlight it when the users leaves. I'm using this code but the color I'm drawing in the leave_button_callback is always wrong and varies from run to run with

GtkImage problem

2007-05-04 Thread beginner.c
I have the following code, which comiles and displays the image yet I get the following errors Compile error passing argument 1 of 'gtk_image_set_from_file' from incompatible pointer type Runtime errors (process:12275): GLib-GObject-CRITICAL **: gtype.c:2242: initialization assertion failed,

Re: VFS integration with kernel mounts

2007-05-04 Thread Alexander Larsson
On Thu, 2007-05-03 at 15:45 -0400, David Zeuthen wrote: On Thu, 2007-05-03 at 16:59 +0200, Alexander Larsson wrote: The selection of whether to do local or remote i/o is done when instantiating the GFile. We instantiate a GLocalFile or a GDaemonFile depending on the uri and the default GVfs

g_object_get_property could return the GValue passed in, instead of void

2007-05-04 Thread Gabriel Schulhof
Hi! I don't know how much of an ABI break this would be, since all current code ignores the non-existent return value of g_object_get_property. OTOH, were we to have GValue *g_object_get_property (GObject *object, const gchar *property_name, GValue *value); We could do nice things like GValue

Re: VFS integration with kernel mounts

2007-05-04 Thread Alexander Larsson
On Thu, 2007-05-03 at 15:18 -0400, David Zeuthen wrote: On Thu, 2007-05-03 at 10:14 +0200, Alexander Larsson wrote: The way a normal application uses gvfs is by the gio apis. Essentially you hand over a uri, and this uri is parsed by custom uri-type specific code into a mount specification

Re: VFS integration with kernel mounts

2007-05-04 Thread Alexander Larsson
On Thu, 2007-05-03 at 10:18 -0500, Jerry Haltom wrote: The selection of whether to do local or remote i/o is done when instantiating the GFile. We instantiate a GLocalFile or a GDaemonFile depending on the uri and the default GVfs instance loaded. However, the mapping from URI to what

What's about the efficiency of using c to OOP compare to the c++'s abstraction?

2007-05-04 Thread la deng
reference to the c++'s father's interview http://www.artima.com/intv/abstreffi.html fortran and c++ can achive good performance for they can abstract in higher level and their compiler can think in higher level to avoid the cache miss (like in the array vs vector )or to achive the no code

Re: g_object_get_property could return the GValue passed in, instead of void

2007-05-04 Thread Tim Janik
On Fri, 4 May 2007, Gabriel Schulhof wrote: Hi! I don't know how much of an ABI break this would be, since all current code ignores the non-existent return value of g_object_get_property. OTOH, were we to have GValue *g_object_get_property (GObject *object, const gchar *property_name,

Re: Some comments about GVFS

2007-05-04 Thread Alexander Larsson
On Thu, 2007-05-03 at 11:11 +0200, Benjamin Otte wrote: Hi, I had an initial look at gvfs in particular the Inputstream and Outputstream implementations, and some comments came to my mind, in particular about the API. So I thought I'd post them as early as possible. These comments are

Re: Tap and Hold API

2007-05-04 Thread Kristian Rietveld
On Tue, May 01, 2007 at 07:47:25PM -0500, Federico Mena Quintero wrote: I don't think having widget-specific tap-n-hold animations is a good idea; I would say that this is really a theme issue and it would be good if every tap-n-hold operation looks the same the to user. You have two

Re: Some comments about GVFS

2007-05-04 Thread Mathieu Lacage
On Fri, 2007-05-04 at 11:40 +0200, Alexander Larsson wrote: 5) You seem to use void * in as the data pointers. All applications I know use guchar * (some use gchar *) to handle data. From my stream handling experience this is to encourage people to think about what they pass to such a

Re: Some comments about GVFS

2007-05-04 Thread Emmanuele Bassi
On Fri, 2007-05-04 at 15:27 +0200, Mathieu Lacage wrote: 5) You seem to use void * in as the data pointers. All applications I know use guchar * (some use gchar *) to handle data. From my stream handling experience this is to encourage people to think about what they pass to such a

Re: Some comments about GVFS

2007-05-04 Thread Havoc Pennington
Hi, Carl Worth wrote: Anyway, I've learned a few new things, and found the discussion very useful. I hope you have as well. Certainly. By the way, is that a compile-time or a run-tim environment variable? And what measures do you take to advertise it? It's a run-time env variable. I think

Re: VFS integration with kernel mounts

2007-05-04 Thread Alexander Larsson
On Fri, 2007-05-04 at 09:00 -0500, Jerry Haltom wrote: Why doesn't HAL use UUIDs? I'd say probably because up until now there was no abstraction to turn those UUIDs into usefully understandable paths for the user. If you plug in a USB disk and open Nautilus, you see the /media/usbdisk-1

Re: VFS integration with kernel mounts

2007-05-04 Thread David Zeuthen
On Fri, 2007-05-04 at 09:00 -0500, Jerry Haltom wrote: Why doesn't HAL use UUIDs? Doesn't exactly make sense. Maybe you mean: Why does my mount points not use UUID?. Understand that HAL [1] is only a source of information + mechanism to allow g-v-m, KDE, gnome-mount, whatever to mount file

Re: Some comments about GVFS

2007-05-04 Thread Benjamin Otte
I just had a chat with Alex on IRC. (I have attached the log if anyone wants to read it.) Some of my ideas have changed after this discussion, so I might contradict my previous mail now. Bear with me. I've come to understand now that Alex' and my idea for what a stream is and how it should work

Re: FileChooserButton API suggestion

2007-05-04 Thread Matthias Clasen
On 5/3/07, Cezary Krzyzanowski [EMAIL PROTECTED] wrote: So first I propose to make some note in the documentation (and maybe in the FAQ), that the supplied dialog needs to have RESPONSE_ACCEPT as the positive result. The second thing is to stop GTKFileChooserButton from changing the title

Child window lost for modal in Win

2007-05-04 Thread Croata
Hi, First of all, excuse me if this is the wrong instance to report a gtk issue in windows. Just followed the link from GTK for Windows http://www.gimp.org/~tml/gimp/win32/ I've executed the following code in Python: http://www.dinko.cl/~dinko/test-py.html And performed the following actions as

Re: Some comments about GVFS

2007-05-04 Thread Carl Worth
On Fri, 04 May 2007 10:27:34 -0400, Havoc Pennington wrote: It's a run-time env variable. I think we don't advertise it at all, it's more of a defense against people who have strong views on the topic and prefer undefined behavior probably a crash to just exit ... And one thing to note here is