Changeset 358
- Timestamp:
- 05/22/06 19:58:09
- Files:
-
- trunk/configure.ac (modified) (8 diffs)
- trunk/libtinymail-gnome-desktop/tny-account-store.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/configure.ac
r340 r358 1 2 1 m4_define([tny_major_version], [1]) 3 2 m4_define([tny_minor_version], [0]) … … 9 8 [m4_eval(100 * tny_minor_version + tny_micro_version)]) 10 9 m4_define([tny_api_version], [1.0]) 10 m4_define([lt_current], [m4_eval(100 * tny_minor_version + tny_micro_version - tny_interface_age)]) 11 m4_define([lt_revision], [tny_interface_age]) 12 m4_define([lt_age], [m4_eval(tny_binary_age - tny_interface_age)]) 11 13 12 14 AC_INIT([libtinymail], [tny_version], [http://www.pvanhoof.be]) … … 17 19 AC_SUBST(ACLOCAL_AMFLAGS, "$ACLOCAL_FLAGS -I m4") 18 20 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)])22 21 LT_VERSION_INFO="lt_current:lt_revision:lt_age" 23 22 LT_CURRENT_MINUS_AGE=m4_eval(lt_current - lt_age) … … 53 52 dnl ### Enable gnome features ## 54 53 AC_ARG_ENABLE(gnome, 55 [ --enable-gnome build using gnome features [default=yes]],54 [ --enable-gnome build using gnome features [default=yes]], 56 55 [case "${enableval}" in 57 56 yes) build_gnome=true ;; … … 61 60 AM_CONDITIONAL(BUILD_GNOME, test x$build_gnome = xtrue) 62 61 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]) 62 dnl ### Select the html component ## 63 AC_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) ;; 79 esac], [build_mozembed=true 80 build_gtkhtml=false 81 with_html_component=mozembed]) 82 71 83 AM_CONDITIONAL(BUILD_MOZEMBED, test x$build_mozembed = xtrue) 84 AM_CONDITIONAL(BUILD_GTKHTML, test x$build_gtkhtml = xtrue) 72 85 73 86 dnl ### Enable the python language bindings ## 74 87 AC_ARG_ENABLE(py-tinymail, 75 [ --enable-py-tinymail build python bindings [default=no]],88 [ --enable-py-tinymail build python bindings [default=no]], 76 89 [case "${enableval}" in 77 90 yes) build_pytinymail=true ;; … … 83 96 dnl ### Enable building the unit tests ## 84 97 AC_ARG_ENABLE(unit-tests, 85 [ --enable-unit-tests build unit tests [default=no]],98 [ --enable-unit-tests build unit tests [default=no]], 86 99 [case "${enableval}" in 87 100 yes) build_unittests=true ;; … … 93 106 dnl ### Set the platform library ## 94 107 AC_ARG_WITH(platform, 95 [ --with-platform=gnome-desktop platform to compile [gnome-desktop]],108 [ --with-platform=gnome-desktop platform to compile [gnome-desktop]], 96 109 [case "${with_platform}" in 97 110 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} 112 esac], [PLATFORMDIR=libtinymail-gnome-desktop 113 with_platform=gnome-desktop]) 100 114 AC_SUBST(PLATFORMDIR) 101 115 … … 224 238 ]) 225 239 240 echo "" 241 echo "The following options are selected:" 242 echo "" 243 echo " Enable GNOME features: $build_gnome" 244 echo " HTML component: ${with_html_component}" 245 echo " Python language bindings: $build_pytinymail" 246 echo " Unit tests: $build_unittests" 247 echo " Target platform: ${with_platform}" 248 echo " Prefix: ${prefix}" 249 echo "" 250 echo "Version info:" 251 echo "" 252 echo " Version: $VERSION" 253 echo " API version: $API_VERSION" 254 echo " ABI version: $LT_VERSION_INFO" 255 echo "" 256 257 trunk/libtinymail-gnome-desktop/tny-account-store.c
r282 r358 395 395 } 396 396 397 static void 398 tny_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 407 static void 408 tny_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 397 415 /* 398 416 gconftool-2 -s /apps/tinymail/cache_dir -t string .tinymail … … 444 462 TnyAccountStorePriv *priv = TNY_ACCOUNT_STORE_GET_PRIVATE (self); 445 463 464 tny_account_store_notify_remove (self); 446 465 tny_account_store_add_account (self, TNY_ACCOUNT_IFACE (account), "store"); 466 tny_account_store_notify_add (self); 467 447 468 g_object_ref (G_OBJECT (account)); 448 469 … … 462 483 463 484 g_object_ref (G_OBJECT (account)); 485 486 tny_account_store_notify_remove (self); 464 487 tny_account_store_add_account (self, TNY_ACCOUNT_IFACE (account), "transport"); 488 tny_account_store_notify_add (self); 465 489 466 490 g_mutex_lock (priv->transport_accounts_lock); … … 501 525 } 502 526 527 503 528 static void 504 529 tny_account_store_instance_init (GTypeInstance *instance, gpointer g_class) … … 515 540 GCONF_CLIENT_PRELOAD_RECURSIVE, NULL); 516 541 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)); 520 543 521 544 return; … … 529 552 TnyAccountStorePriv *priv = TNY_ACCOUNT_STORE_GET_PRIVATE (self); 530 553 531 gconf_client_notify_remove (priv->client, priv->notify);554 tny_account_store_notify_remove (TNY_ACCOUNT_STORE_IFACE (self)); 532 555 g_object_unref (G_OBJECT (priv->client)); 533 556
