Changeset 1810

Show
Ignore:
Timestamp:
04/20/07 19:59:49
Author:
pvanhoof
Message:

Bugfix for merge folders

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/ChangeLog

    r1806 r1810  
    22 
    33        * Further implementing of TnyMergeFolder 
     4        * Bugfixes in camel-lite (concurrent camel_folder_get_message on 
     5        folders that are not selected) 
     6        * Introduction of libtinymail-queues (which depens on asyncworker) 
    47 
    582007-04-18  Philip Van Hoof  <pvanhoof@gnome.org> 
  • trunk/Makefile.am

    r1783 r1810  
    2121if BUILD_ACAP 
    2222SUBDIRS += libtinymail-acap 
     23endif 
     24 
     25if BUILD_QUEUES 
     26SUBDIRS += libtinymail-queues 
    2327endif 
    2428 
  • trunk/configure.ac

    r1792 r1810  
    5555 
    5656dnl ### default values (will get overwritten) 
     57build_queues=false 
    5758build_acap=false 
    5859build_gnome=true 
     
    186187AM_CONDITIONAL(BUILD_ACAP, test x$build_acap = xtrue) 
    187188 
     189dnl ### Enable queues ## 
     190AC_ARG_ENABLE(queues, 
     191AC_HELP_STRING([--enable-queues], 
     192  [Build using queues]), 
     193[case "${enableval}" in 
     194  yes) 
     195        build_queues=true 
     196  ;; 
     197  no)  build_queues=false ;; 
     198  *) AC_MSG_ERROR(bad value ${enableval} for --enable-queues) ;; 
     199esac],[build_queues=$build_queues]) 
     200AM_CONDITIONAL(BUILD_QUEUES, test x$build_queues = xtrue) 
     201 
     202 
    188203 
    189204dnl ### Enable building the unit tests ## 
     
    262277AC_SUBST(LIBTINYMAIL_CFLAGS) 
    263278AC_SUBST(LIBTINYMAIL_LIBS) 
     279 
     280if test x$build_queues = xtrue; then 
     281PKG_CHECK_MODULES(LIBTINYMAIL_QUEUES, oasyncworker-1.0 glib-2.0 >= 2.8 gobject-2.0) 
     282AC_SUBST(LIBTINYMAIL_QUEUES_CFLAGS) 
     283AC_SUBST(LIBTINYMAIL_QUEUES_LIBS) 
     284fi 
     285 
    264286 
    265287dnl ### libtinymailui, the ui abstraction library ## 
     
    436458libtinymail-acap/Makefile 
    437459libtinymail-acap/libtinymail-acap.pc 
     460libtinymail-queues/Makefile 
     461libtinymail-queues/libtinymail-queues.pc 
    438462tests/Makefile 
    439463tests/c-demo/Makefile 
     
    450474echo "  Enable GNOME features:       $build_gnome" 
    451475echo "  Enable ACAP features:        $build_acap" 
     476echo "  Build the queues library:    $build_queues" 
    452477echo "  HTML component:              ${with_html_component}" 
    453478echo "  Python language bindings:    $build_pytinymail" 
  • trunk/libtinymail/tny-folder.c

    r1737 r1810  
    887887 * @user_data: user data for the callback 
    888888 * 
    889  * Get a message in @self identified by @header. You must unreference the 
    890  * return value after use. 
     889 * Get a message in @self identified by @header.  
    891890 * 
    892891 * If you want to use this functionality, it's advised to let your application  
  • trunk/tests/c-demo/tny-demoui-summary-view.c

    r1806 r1810  
    500500        mode = gtk_tree_selection_get_mode (selection); 
    501501 
    502         g_mutex_lock (priv->monitor_lock); 
    503         { 
    504                 if (priv->monitor) 
    505                 { 
    506                         tny_folder_monitor_stop (priv->monitor); 
    507                         g_object_unref (G_OBJECT (priv->monitor)); 
    508                 } 
    509         } 
    510         g_mutex_unlock (priv->monitor_lock); 
    511  
    512502        if (mode == GTK_SELECTION_SINGLE) 
    513503        { 
     
    549539                        g_mutex_lock (priv->monitor_lock); 
    550540                        { 
     541                                if (priv->monitor) { 
     542                                        tny_folder_monitor_stop (priv->monitor); 
     543                                        g_object_unref (G_OBJECT (priv->monitor)); 
     544                                } 
    551545                                priv->monitor = TNY_FOLDER_MONITOR (tny_folder_monitor_new (folder)); 
    552546                                tny_folder_monitor_add_list (priv->monitor, TNY_LIST (hmodel)); 
     
    572566                                refresh_current_folder,  
    573567                                refresh_current_folder_status_update, user_data); 
    574  
    575568 
    576569                        g_object_unref (G_OBJECT (folder)); 
     
    611604                g_mutex_lock (priv->monitor_lock); 
    612605                { 
     606                        if (priv->monitor) { 
     607                                tny_folder_monitor_stop (priv->monitor); 
     608                                g_object_unref (G_OBJECT (priv->monitor)); 
     609                        } 
    613610                        priv->monitor = TNY_FOLDER_MONITOR (tny_folder_monitor_new (merge)); 
    614611                        tny_folder_monitor_add_list (priv->monitor, TNY_LIST (hmodel));