Changeset 362

Show
Ignore:
Timestamp:
05/22/06 20:48:10
Author:
pvanhoof
Message:

Solved the firefox gtkmozembed bug

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/configure.ac

    r360 r362  
    153153dnl ### libtinymailui-mozembed, a library that wraps the gtkmozembed widget ## 
    154154if test x$build_mozembed = xtrue; then 
    155   extraplatpkgs="firefox-nss firefox-xpcom firefox-gtkmozembed" 
     155  extraplatpkgs="firefox-nspr firefox-nss firefox-xpcom firefox-gtkmozembed" 
     156  extratnypkgs="$extratnypkgs $extraplatpkgs" 
    156157  PKG_CHECK_MODULES(LIBTINYMAILUI_MOZEMBED, $extraplatpkgs glib-2.0 >= 2.8 gobject-2.0 gtk+-2.0 $extragtkpkgs) 
    157158else 
  • trunk/libtinymail-camel/tny-session-camel.c

    r256 r362  
    376376{ 
    377377        ms_parent_class->thread_msg_free(session, m); 
    378  
     378         
    379379        return; 
    380380} 
  • trunk/tinymail/Makefile.am

    r336 r362  
    1010if BUILD_GNOME 
    1111INCLUDES += -DGNOME 
     12endif 
     13 
     14if BUILD_MOZEMBED 
     15INCLUDES += -DMOZEMBED 
    1216endif 
    1317 
  • trunk/tinymail/tny-main.c

    r336 r362  
    1717 */ 
    1818 
    19  
    2019#include <gtk/gtk.h> 
    2120 
     
    3029#endif 
    3130 
     31#ifdef MOZEMBED 
     32#include <nspr.h> 
     33#include <prthread.h> 
     34 
     35static void 
     36tny_main_shutdown (gpointer data) 
     37{ 
     38 
     39        /* This solves a firefox vs. Camel bug. */ 
     40 
     41        PR_ProcessExit ((int)data); 
     42        gtk_exit ((gint)data); 
     43 
     44        return; 
     45} 
     46#endif 
    3247 
    3348/** 
     
    6681         
    6782        g_signal_connect (window, "destroy", 
     83#ifdef MOZEMBED 
     84                G_CALLBACK (tny_main_shutdown), 0); 
     85#else 
    6886                G_CALLBACK (gtk_exit), 0); 
     87#endif 
    6988 
    7089        gtk_main();