Re: Client Side windows in GDK (GTK+-2.18.xxx)

2010-03-11 Thread Tor Lillqvist
Could some one help me on this how to proceed further? Read the code, understand how it works, debug, fix problems, submit patches in bugzilla? Please understand that the directdb stuff in gtk+ is very close to unmaintained, as far as I know. --tml

Re: g_idle_add(): limits?

2010-03-11 Thread Chris Vine
On Wed, 10 Mar 2010 15:10:50 +0100 fka...@googlemail.com fka...@googlemail.com wrote: Chris Vine: I make heavy use of g_idle_add(), and encounter this problem: It seems that the idle functions aren't called sometimes. [...] Assuming that is right, any sources you add before calling

Weird behaviour of gdk_device_get_history

2010-03-11 Thread Rafael Cunha de Almeida
I'm using gdk_device_get_history and I have been hitting some weird behavior. Sometimes get_history returns coords at 0, 0, but the mouse (the device I'm using) never goes there. I notice that if I add 1 to the start time and subtract 1 from the end value, things seem to work. I'm a bit puzzled.

Re: Client Side windows in GDK (GTK+-2.18.xxx)

2010-03-11 Thread AshokKumar G
Hi Tor Lillqvist, Thanks for valuable information. I was wrong. I was thinking that DirectFB stuff in gtk+ is also maintained. I am working on understanding client side windows and debugging the code. Thanks Regards AshokKumar.G On Thu, Mar 11, 2010 at 12:39 AM, Tor

resource file styles ignored in gtk 2.19.5 and 2.19.7

2010-03-11 Thread John Stebbins
This worked previously in gtk 2.18. I'm testing my code on the alpha releases of ubuntu 10.04 and fedora 13 which have gtk 2.19.5 and 2.19.7 respectively. Am I doing something incorrect? Has this functionality been changed in some way? const gchar *hud_rcstyle = style \ghb-hud\ {\n

Re: GtkNotebook scrolling usability

2010-03-11 Thread Christian Dywan
Am Wed, 10 Mar 2010 16:50:04 -0600 schrieb Cody Russell brats...@gnome.org: So, right now GtkNotebook allows you to change tabs by using the mouse wheel. Once I noticed this and the more I thought about it, it really seems like a terrible feature and one that may be detrimental to usability.

Re: GtkNotebook scrolling usability

2010-03-11 Thread Alberto Ruiz
2010/3/11 Sandy Armstrong sanfordarmstr...@gmail.com: On Wed, Mar 10, 2010 at 4:20 PM, Luca Ferretti elle@libero.it wrote: Il giorno mer, 10/03/2010 alle 16.50 -0600, Cody Russell ha scritto: Just wanted to post on the lists and see if people have thoughts on this, otherwise I'm probably

Re: GtkNotebook scrolling usability

2010-03-11 Thread Tomas Bzatek
On Thu, 2010-03-11 at 10:16 +0100, Christian Dywan wrote: Using the mouse wheel that way in a web browser or text editor is a very convenient feature. It is much quicker than having to move the pointer to one of the sides only to switch tabs. Please don't break it just because you never used

Re: GtkNotebook scrolling usability

2010-03-11 Thread Carlos Garnacho
Hi! :), On mié, 2010-03-10 at 16:50 -0600, Cody Russell wrote: So, right now GtkNotebook allows you to change tabs by using the mouse wheel. Once I noticed this and the more I thought about it, it really seems like a terrible feature and one that may be detrimental to usability. I may

Re: GtkNotebook scrolling usability

2010-03-11 Thread Cody Russell
On Thu, 2010-03-11 at 10:16 +0100, Christian Dywan wrote: Using the mouse wheel that way in a web browser or text editor is a very convenient feature. It is much quicker than having to move the pointer to one of the sides only to switch tabs. Please don't break it just because you never used

Re: GtkNotebook scrolling usability

2010-03-11 Thread Cody Russell
On Thu, 2010-03-11 at 09:20 +, Alberto Ruiz wrote: If there ends up being a bug report about this, please share the bug number. And hopefully we can get some usability nerds involved in this decision. I agree with Sandy here, I would leave this decision up to the usability guys.

Re: GtkNotebook scrolling usability

2010-03-11 Thread Cosimo Cecchi
On Thu, 2010-03-11 at 07:27 -0600, Cody Russell wrote: On Thu, 2010-03-11 at 09:20 +, Alberto Ruiz wrote: If there ends up being a bug report about this, please share the bug number. And hopefully we can get some usability nerds involved in this decision. I agree with Sandy

Re: GtkNotebook scrolling usability

2010-03-11 Thread Colomban Wendling
Shaun McCance a écrit : On Wed, 2010-03-10 at 17:25 -0600, Jason D. Clinton wrote: On Wed, Mar 10, 2010 at 4:50 PM, Cody Russell brats...@gnome.org wrote: He suggested that maybe there's a use for it in the case that you have a ton of notebook tabs open, but

Re: GtkNotebook scrolling usability

2010-03-11 Thread Alberto Ruiz
2010/3/11 Vinicius Depizzol vdepiz...@gmail.com: On Thu, Mar 11, 2010 at 10:01, Carlos Garnacho carl...@gnome.org wrote: I may understand not all notebooks need this feature. Perhaps we could have a MDI mode in GtkNotebook, so features such as mouse wheel scrolling and tab switching on

Re: GtkNotebook scrolling usability

2010-03-11 Thread Alberto Ruiz
Actually, this reminds me of an issue I had while trying to fix tabs in the Mac OS X/Quartz engine. Basically, on MDI, the Mac preference tab mode, is pretty weird, that's why Safari and Firefox have their own drawn tabs instead of the typical tabs in a preference dialog. If we had a setting

Re: GtkNotebook scrolling usability

2010-03-11 Thread Johannes Schmid
Hi! Am Donnerstag, den 11.03.2010, 14:20 + schrieb Alberto Ruiz: Now that I think about it, I think the notebook needs a review from a wider perspective. We are trying to make this class one-size-fits-all-cases. We already discussed about simplifying this widget a bit (we already

Re: GtkNotebook scrolling usability

2010-03-11 Thread Alberto Ruiz
2010/3/11 Johannes Schmid j...@jsschmid.de: Hi! Am Donnerstag, den 11.03.2010, 14:20 + schrieb Alberto Ruiz: Now that I think about it, I think the notebook needs a review from a wider perspective. We are trying to make this class one-size-fits-all-cases. We already discussed about

Re: Memory leaks?

2010-03-11 Thread Tor Lillqvist
I'm building against GTK 2.10.4. It's pointless to report problems against such old versions. Even if there is a memory leak in GTK+ 2.10, nobody is going to fix it, and more importantly, nobody is going to release updated sources of it,when the current maintained version is 2.18. (Of course,

Re: Memory leaks?

2010-03-11 Thread Chris Vine
On Thu, 11 Mar 2010 08:08:51 +0100 Friedrich Dominicus fr...@q-software-solutions.de wrote: Vikram Noel Ambrose noel.ambr...@gmail.com writes: I just suppress everything not coming out of my source files and leave it at that. GTK is not something any single person could go through

Re: Memory leaks?

2010-03-11 Thread jcupitt
On 11 March 2010 10:32, Chris Vine ch...@cvine.freeserve.co.uk wrote: It would be nice if someone in the gtk+/gnome projects were to produce a suppression file (there was work on one for gtk+-2.12) but the I posted this the last time this subject came up, but I made this for my project:

Re: Memory leaks?

2010-03-11 Thread Sergei Steshenko
--- On Thu, 3/11/10, Chris Vine ch...@cvine.freeserve.co.uk wrote: From: Chris Vine ch...@cvine.freeserve.co.uk Subject: Re: Memory leaks? To: Friedrich Dominicus fr...@q-software-solutions.de Cc: gtk-list@gnome.org Date: Thursday, March 11, 2010, 2:32 AM On Thu, 11 Mar 2010 08:08:51

Gedit lib-ification, or add higher level functionnalities in GtkSourceView

2010-03-11 Thread Sébastien Wilmet
Hello! Writing an IDE with GTK+ and GtkSourceView involves a lot of work, and I think that a lot of Gedit custom widgets can be reused, like GeditDocument or GeditFileChooserDialog [1]. There are common features in all text editors that are not supported by GtkSourceView, and each IDE have its

Draw on top of a window

2010-03-11 Thread Richard Kung
Hi, I want to use cairo to draw on top of a window but don't know how to achieve it. Below is my code. bottom_image is always on top of top_image. Any suggestion for beginners is welcome. Richard #include cairo.h #include gtk/gtk.h cairo_surface_t *top_image; GtkWidget *bottom_image;

Re: Draw on top of a window

2010-03-11 Thread Lucas Hermann Negri
On Thu, Mar 11, 2010 at 11:41 PM, Richard Kung richardk...@linpus.com wrote: Hi, I want to use cairo to draw on top of a window but don't know how to achieve it. Below is my code. bottom_image is always on top of top_image. Any suggestion for beginners is welcome. Richard #include

Re: Draw on top of a window

2010-03-11 Thread Richard Kung
Hi, Thanks. Actually I tried return TRUE before, but it causes bottom_image to never be drawn. What I want is top_image on top of bottom_image. Richard On 03/12/2010 10:55 AM, Lucas Hermann Negri wrote: On Thu, Mar 11, 2010 at 11:41 PM, Richard Kungrichardk...@linpus.com wrote: Hi, I