Changeset 2324

Show
Ignore:
Timestamp:
06/29/07 17:41:54
Author:
murrayc
Message:

2007-06-29 Murray Cumming <murrayc@murrayc.com>

        • libtinymail-maemo/tny-maemo-conic-device.c:

(tny_maemo_conic_device_connect): Use GDK_THREADS_ENTER/LEAVE as
used by gdk_dialog_run(), because a second g_main_loop_run() seems
to hang when gdk_threads_init() has been called before (by the app,
for instance). I don't like having these at this level, so we
should try to fix it properly later.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/ChangeLog

    r2316 r2324  
     12007-06-29  Murray Cumming  <murrayc@murrayc.com> 
     2 
     3        * libtinymail-maemo/tny-maemo-conic-device.c: 
     4        (tny_maemo_conic_device_connect): Use GDK_THREADS_ENTER/LEAVE as  
     5        used by gdk_dialog_run(), because a second g_main_loop_run() seems  
     6        to hang when gdk_threads_init() has been called before (by the app,  
     7        for instance). I don't like having these at this level, so we  
     8        should try to fix it properly later. 
     9 
    1102007-06-29  Murray Cumming  <murrayc@murrayc.com> 
    211        * libtinymail-maemo/tny-maemo-conic-device.c:  
  • trunk/libtinymail-maemo/tny-maemo-conic-device.c

    r2316 r2324  
    2626#include <conicconnection.h> 
    2727#include <conicconnectionevent.h> 
     28#include <gdk/gdk.h> /* For GDK_THREAD_ENTER/LEAVE */ 
    2829#include <string.h> /* For strcmp() */ 
    2930#include <stdio.h> /* for printf */ 
     
    221222printf ("debug4\n"); 
    222223        /* This is based on code found in gtk_dialog_run(): */ 
    223         /* GDK_THREADS_LEAVE(); */ 
     224        GDK_THREADS_LEAVE(); 
    224225printf ("debug5\n"); 
    225226        /* Run until g_main_loop_quit() is called by our signal handler. */ 
    226227        g_main_loop_run (priv->loop); 
    227228printf ("debug6\n"); 
    228         /* GDK_THREADS_ENTER(); */ 
     229        GDK_THREADS_ENTER(); 
    229230printf ("debug7\n"); 
    230231        g_main_loop_unref (priv->loop);