libglib2, Emacs and GTK applications

Yaakov (Cygwin/X) yselkowitz@users.sourceforge.net
Tue Feb 9 03:04:00 GMT 2010


On 08/02/2010 08:30, Angelo Graziosi wrote:
> Just for completeness, I want to flag some strange things that I see
> between a GTK build of Emacs and libglib2.0_0-2.22.4-2 BUT NOT with
> libglib2.0_0-2.22.4-1!

Let me start with this intro: 2.22.4-1 included a fix for GIO plugin 
loading on Win32[1], but once again they lumped Cygwin together with 
MinGW.  Of course, not only did this not need to be "fixed" on Cygwin 
but they outright broke GIO and everything that depends on it, and I got 
to pick up the pieces.  Hence the need for 2.22.4-2, which behaves as it 
should.

So you might as well forget about 2.22.4-1, and focus on whatever issues 
you appear to be having with GIO.

[1] http://git.gnome.org/browse/glib/commit/?h=glib-2-22&id=ae0a220b

> With 2.22.4-2, when I open a dialog box (for example clicking on the
> tool bar icon "Reading an existing file into an Emacs buffer"), in /tmp
> is created the directory 'fam-angelo' and 'ps' shows a 'gamin-server'
> running.

This is the expected behaviour.  GtkFileChooser uses GFileMonitor (whose 
backend uses FAM/Gamin) so that changes to the directory being browsed 
are displayed.

> When I quit from Emacs (C-x C-c), the Emacs window stays on the
> desktop until 'gamin-server' is removed, i.e. for at least 20-30
> seconds, looking as if Emacs were hanging.

I haven't seen this behaviour with other GTK+ apps, so I suspect it may 
be (YA) emacs/gtk+ bug.  (Googling shows that this seems to happen a 
lot.)  You may want to try these patches and see if they help:

http://patch-tracker.debian.org/patch/series/dl/emacs23/23.1+1-6/fix-dynamic-menus.diff
http://patch-tracker.debian.org/patch/series/dl/emacs23/23.1+1-6/fix-gtk-scroll-bar-events.diff


Yaakov
Cygwin/X

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://x.cygwin.com/docs/
FAQ:                   http://x.cygwin.com/docs/faq/



More information about the Cygwin-xfree mailing list