RE: Signal dispatching slowed down after upgrade
- From: BALLABIO GERARDO <GERARDO BALLABIO ESTERNI GRUPPO MPS IT>
- To: "gtkmm-list gnome org" <gtkmm-list gnome org>
- Subject: RE: Signal dispatching slowed down after upgrade
- Date: Tue, 15 Feb 2011 09:25:19 +0100
From: Krzysztof Kosiński [mailto:tweenk pl gmail com]
> The slowdown is not caused by signal emission, but by modify_bg. If you write a custom expose handler that draws the cells, the updates are instantaneous. See the attached file.
Wow. I still don't understand why modify_bg would be that slow, but at least I can work around it, so thank you.
But now I have another question. If I move the pointer around with no buttons pressed, the cells change color every time it enters a new cell. But if I press any button and move the pointer while keeping it pressed, then nothing happens any more. Only when I release the button the cell where the pointer is at that moment is activated. In other words, it seems that pressing buttons inhibits the generation of enter_notify events. I've tried also with pointer_motion events, but it does exactly the same thing (except it doesn't activate the cell even when I release the button). I want the program to behave in the same way whether buttons are pressed or not. How can I do that?
Thanks again.
Gerardo
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]