Package: python-gnome2-extras
Version: 2.10.0-2
Severity: wishlist
Tags: patch

Hi,

For version 2.11.0, upstream has fixed Bug
http://bugzilla.gnome.org/show_bug.cgi?id=168057, which caused
gnome-applets not being able to run threads. The fix is trivial, the
following patch is pulled from 
http://cvs.gnome.org/viewcvs/gnome-python/gnome-python-extras/gnomeapplet/applet.override?r1=1.7&r2=1.8&makepatch=1&diff_format=h

===================================================================
RCS file: 
/cvs/gnome/gnome-python/gnome-python-extras/gnomeapplet/applet.override,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- applet.override     2004/08/14 10:49:54     1.7
+++ applet.override     2005/03/25 15:52:35     1.8
@@ -43,9 +43,11 @@
     
     type = pyg_type_from_object (pytype);
     
+    pyg_begin_allow_threads;
     retval = panel_applet_factory_main_closure (iid,
                                                type,
                                                 pyg_closure_new (callback, 
params, NULL));
+    pyg_end_allow_threads;
     return PyInt_FromLong (retval);
 }
 %%
@@ -95,9 +97,11 @@
                            GNOME_PARAM_NONE,
                            NULL);            
 
+        pyg_begin_allow_threads;
         panel_applet_factory_main_closure (iid,
                                           type,
                                           pyg_closure_new (callback, params, 
NULL));
+        pyg_end_allow_threads;
        
        /* TODO: Check if it's really neccessary to set argc and argv here */
        PySys_SetArgv (argc, argv);


I need this to hack Category support in gnome-blog, and I'm sure that
there are / will be more applet that need threads to combine network stuff
and UI responsiveness.

Thanks,
Joachim


-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.10.otto
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)

Versions of packages python-gnome2-extras depends on:
ii  python                        2.3.5-2    An interactive high-level object-o
ii  python2.3-gnome2-extras       2.10.0-2   Python bindings for the GNOME desk

python-gnome2-extras recommends no packages.

Versions of packages python-gnome2-extras is related to:
ii  reportbug                     3.13       reports bugs in the Debian distrib
pn  totem-gstreamer               <none>     (no description available)

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to