* fixed_gtk_widget_size_allocate is called a lot
@ 2011-07-26 14:58 joakim
2011-07-26 15:11 ` Jan Djärv
0 siblings, 1 reply; 2+ messages in thread
From: joakim @ 2011-07-26 14:58 UTC (permalink / raw)
To: emacs-devel
I'm debugging some flicker when displaying a gtk socket in the xwidget
branch. Other widgets types don't flicker.
during debugging I find my local override
emacs_fixed_gtk_widget_size_allocate gets called a lot, like during
every redisplay or something. The flickering have the same sort of
frequency. Should gtk widgets allocation happen that often?
Sockets around a bit different from other types of widgets since they
always are native windows, which ordinary widgets aren't by default in GTK3.
--
Joakim Verona
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: fixed_gtk_widget_size_allocate is called a lot
2011-07-26 14:58 fixed_gtk_widget_size_allocate is called a lot joakim
@ 2011-07-26 15:11 ` Jan Djärv
0 siblings, 0 replies; 2+ messages in thread
From: Jan Djärv @ 2011-07-26 15:11 UTC (permalink / raw)
To: joakim; +Cc: emacs-devel
Hi.
joakim@verona.se skrev 2011-07-26 16:58:
> I'm debugging some flicker when displaying a gtk socket in the xwidget
> branch. Other widgets types don't flicker.
>
> during debugging I find my local override
> emacs_fixed_gtk_widget_size_allocate gets called a lot, like during
> every redisplay or something. The flickering have the same sort of
> frequency. Should gtk widgets allocation happen that often?
I guess so. You can break in it to see the call stack. Maybe there is some
Emacs operation that trigger it that we can optimize.
But if the allocation is the same as previous, your widget should not do anything.
Jan D.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-07-26 15:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-26 14:58 fixed_gtk_widget_size_allocate is called a lot joakim
2011-07-26 15:11 ` Jan Djärv
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).