Changeset 358

Show
Ignore:
Timestamp:
05/22/06 19:58:09
Author:
pvanhoof
Message:

Build environment

Files:

Legend:

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

    r340 r358  
    1  
    21m4_define([tny_major_version], [1]) 
    32m4_define([tny_minor_version], [0]) 
     
    98          [m4_eval(100 * tny_minor_version + tny_micro_version)]) 
    109m4_define([tny_api_version], [1.0]) 
     10m4_define([lt_current], [m4_eval(100 * tny_minor_version + tny_micro_version - tny_interface_age)]) 
     11m4_define([lt_revision], [tny_interface_age]) 
     12m4_define([lt_age], [m4_eval(tny_binary_age - tny_interface_age)]) 
    1113 
    1214AC_INIT([libtinymail], [tny_version], [http://www.pvanhoof.be]) 
     
    1719AC_SUBST(ACLOCAL_AMFLAGS, "$ACLOCAL_FLAGS -I m4") 
    1820 
    19 m4_define([lt_current], [m4_eval(100 * tny_minor_version + tny_micro_version - tny_interface_age)]) 
    20 m4_define([lt_revision], [tny_interface_age]) 
    21 m4_define([lt_age], [m4_eval(tny_binary_age - tny_interface_age)]) 
    2221LT_VERSION_INFO="lt_current:lt_revision:lt_age" 
    2322LT_CURRENT_MINUS_AGE=m4_eval(lt_current - lt_age) 
     
    5352dnl ### Enable gnome features ## 
    5453AC_ARG_ENABLE(gnome, 
    55 [  --enable-gnome    build using gnome features [default=yes]], 
     54[  --enable-gnome              build using gnome features [default=yes]], 
    5655[case "${enableval}" in 
    5756  yes) build_gnome=true ;; 
     
    6160AM_CONDITIONAL(BUILD_GNOME, test x$build_gnome = xtrue) 
    6261 
    63 dnl ### Enable the gtkmozembed widget ## 
    64 AC_ARG_ENABLE(mozembed, 
    65 [  --enable-mozembed    build using the gtkmozembed widget [default=yes]], 
    66 [case "${enableval}" in 
    67   yes) build_mozembed=true ;; 
    68   no)  build_mozembed=false ;; 
    69   *) AC_MSG_ERROR(bad value ${enableval} for --enable-mozembed) ;; 
    70 esac],[build_mozembed=true]) 
     62dnl ### Select the html component ## 
     63AC_ARG_WITH(html-component, 
     64[  --with-html-component                set which html component to use [default=mozembed]], 
     65[case "$with_html_component" in 
     66  mozembed)  
     67        build_mozembed=true 
     68        build_gtkhtml=false 
     69  ;; 
     70  gtkhtml) 
     71        build_mozembed=false 
     72        build_gtkhtml=false 
     73  ;; 
     74  none) 
     75        build_mozembed=false  
     76        build_gtkhtml=false 
     77  ;; 
     78  *) AC_MSG_ERROR(bad value ${with_html_component} for --with-html-component) ;; 
     79esac], [build_mozembed=true  
     80        build_gtkhtml=false 
     81        with_html_component=mozembed]) 
     82 
    7183AM_CONDITIONAL(BUILD_MOZEMBED, test x$build_mozembed = xtrue) 
     84AM_CONDITIONAL(BUILD_GTKHTML, test x$build_gtkhtml = xtrue) 
    7285 
    7386dnl ### Enable the python language bindings ## 
    7487AC_ARG_ENABLE(py-tinymail, 
    75 [  --enable-py-tinymail    build python bindings [default=no]], 
     88[  --enable-py-tinymail                build python bindings [default=no]], 
    7689[case "${enableval}" in 
    7790  yes) build_pytinymail=true ;; 
     
    8396dnl ### Enable building the unit tests ## 
    8497AC_ARG_ENABLE(unit-tests, 
    85 [  --enable-unit-tests    build unit tests [default=no]], 
     98[  --enable-unit-tests         build unit tests [default=no]], 
    8699[case "${enableval}" in 
    87100  yes) build_unittests=true ;; 
     
    93106dnl ### Set the platform library ## 
    94107AC_ARG_WITH(platform, 
    95 [  --with-platform=gnome-desktop       platform to compile [gnome-desktop]], 
     108[  --with-platform=gnome-desktop               platform to compile [gnome-desktop]], 
    96109[case "${with_platform}" in 
    97110  gnome-desktop) PLATFORMDIR=libtinymail-gnome-desktop ;; 
    98   *) AC_MSG_ERROR(bad value ${with_platform} for --with-platform) ;; 
    99 esac],[PLATFORMDIR=libtinymail-gnome-desktop]) 
     111  *) PLATFORMDIR=${with_platform} 
     112esac], [PLATFORMDIR=libtinymail-gnome-desktop 
     113        with_platform=gnome-desktop]) 
    100114AC_SUBST(PLATFORMDIR) 
    101115 
     
    224238]) 
    225239 
     240echo "" 
     241echo "The following options are selected:" 
     242echo "" 
     243echo "  Enable GNOME features:       $build_gnome" 
     244echo "  HTML component:              ${with_html_component}" 
     245echo "  Python language bindings:    $build_pytinymail" 
     246echo "  Unit tests:                  $build_unittests" 
     247echo "  Target platform:             ${with_platform}" 
     248echo "  Prefix:                      ${prefix}" 
     249echo "" 
     250echo "Version info:" 
     251echo "" 
     252echo "  Version:                     $VERSION" 
     253echo "  API version:                 $API_VERSION" 
     254echo "  ABI version:                 $LT_VERSION_INFO" 
     255echo "" 
     256 
     257 
  • trunk/libtinymail-gnome-desktop/tny-account-store.c

    r282 r358  
    395395} 
    396396 
     397static void 
     398tny_account_store_notify_add (TnyAccountStoreIface *self) 
     399{ 
     400        TnyAccountStorePriv *priv = TNY_ACCOUNT_STORE_GET_PRIVATE (self); 
     401        priv->notify = gconf_client_notify_add (priv->client,  
     402                "/apps/tinymail/accounts", gconf_listener_account_changed, 
     403                self, NULL, NULL); 
     404        return; 
     405} 
     406 
     407static void 
     408tny_account_store_notify_remove (TnyAccountStoreIface *self) 
     409{ 
     410        TnyAccountStorePriv *priv = TNY_ACCOUNT_STORE_GET_PRIVATE (self); 
     411        gconf_client_notify_remove (priv->client, priv->notify); 
     412        return; 
     413} 
     414 
    397415/* 
    398416        gconftool-2 -s /apps/tinymail/cache_dir -t string .tinymail 
     
    444462        TnyAccountStorePriv *priv = TNY_ACCOUNT_STORE_GET_PRIVATE (self); 
    445463 
     464        tny_account_store_notify_remove (self); 
    446465        tny_account_store_add_account (self, TNY_ACCOUNT_IFACE (account), "store"); 
     466        tny_account_store_notify_add (self); 
     467 
    447468        g_object_ref (G_OBJECT (account)); 
    448469 
     
    462483 
    463484        g_object_ref (G_OBJECT (account)); 
     485 
     486        tny_account_store_notify_remove (self); 
    464487        tny_account_store_add_account (self, TNY_ACCOUNT_IFACE (account), "transport"); 
     488        tny_account_store_notify_add (self); 
    465489 
    466490        g_mutex_lock (priv->transport_accounts_lock); 
     
    501525} 
    502526 
     527 
    503528static void 
    504529tny_account_store_instance_init (GTypeInstance *instance, gpointer g_class) 
     
    515540                GCONF_CLIENT_PRELOAD_RECURSIVE, NULL); 
    516541 
    517         priv->notify = gconf_client_notify_add (priv->client,  
    518                 "/apps/tinymail/accounts", gconf_listener_account_changed, 
    519                 self, NULL, NULL); 
     542        tny_account_store_notify_add (TNY_ACCOUNT_STORE_IFACE (self)); 
    520543 
    521544        return; 
     
    529552        TnyAccountStorePriv *priv = TNY_ACCOUNT_STORE_GET_PRIVATE (self); 
    530553 
    531         gconf_client_notify_remove (priv->client, priv->notify); 
     554        tny_account_store_notify_remove (TNY_ACCOUNT_STORE_IFACE (self)); 
    532555        g_object_unref (G_OBJECT (priv->client)); 
    533556