Changeset 3287
- Timestamp:
- 01/22/08 20:42:36
- Files:
-
- trunk/ChangeLog (modified) (1 diff)
- trunk/Makefile.am (modified) (1 diff)
- trunk/configure.ac (modified) (4 diffs)
- trunk/libtinymail-camel/bs/bodystruct.c (modified) (2 diffs)
- trunk/libtinymail-camel/camel-lite/camel/camel-data-cache.c (modified) (2 diffs)
- trunk/libtinymail-camel/camel-lite/camel/camel-folder-summary.c (modified) (3 diffs)
- trunk/libtinymail-camel/camel-lite/camel/camel-folder-summary.h (modified) (1 diff)
- trunk/libtinymail-camel/camel-lite/camel/providers/imap/camel-imap-folder.c (modified) (5 diffs)
- trunk/libtinymail-camel/camel-lite/camel/providers/pop3/camel-pop3-folder.c (modified) (3 diffs)
- trunk/libtinymail-camel/camel-lite/summary/summary.c (modified) (2 diffs)
- trunk/libtinymail-camel/tny-camel-send-queue.c (modified) (2 diffs)
- trunk/libtinymail-camel/tny-session-camel.c (modified) (4 diffs)
- trunk/libtinymail-gnome-desktop/Makefile.am (modified) (2 diffs)
- trunk/libtinymail-gnome-desktop/tny-gnome-platform-factory.c (modified) (2 diffs)
- trunk/libtinymail/tny-list.c (modified) (3 diffs)
- trunk/libtinymailui-gtkhtml (added)
- trunk/libtinymailui-gtkhtml/.svnignore (added)
- trunk/libtinymailui-gtkhtml/Makefile.am (added)
- trunk/libtinymailui-gtkhtml/libtinymailui-gtkhtml.pc.in (added)
- trunk/libtinymailui-gtkhtml/tny-gtk-html-mime-part-view.c (added)
- trunk/libtinymailui-gtkhtml/tny-gtk-html-mime-part-view.h (added)
- trunk/libtinymailui-gtkhtml/tny-gtk-html-msg-view.c (added)
- trunk/libtinymailui-gtkhtml/tny-gtk-html-msg-view.h (added)
- trunk/libtinymailui-gtkhtml/tny-gtk-html-stream.c (added)
- trunk/libtinymailui-gtkhtml/tny-gtk-html-stream.h (added)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/ChangeLog
r3285 r3287 1 2008-01-22 Philip Van Hoof <pvanhoof@gnome.org> 2 3 * Added support for GtkHTML in libtinymailui-gtkhtml. This is highly 4 experimental and unfinished at this moment 5 * Fixed several compiler warnings, and cleaned up some code 6 7 * This was a minor API change 8 1 9 2008-01-21 Dirk-Jan C. Binnema <dirk-jan.binnema@nokia.com> 2 10 trunk/Makefile.am
r3189 r3287 19 19 if BUILD_WEBKIT 20 20 SUBDIRS += libtinymailui-webkit 21 endif 22 23 if BUILD_GTKHTML 24 SUBDIRS += libtinymailui-gtkhtml 21 25 endif 22 26 trunk/configure.ac
r3187 r3287 124 124 AC_ARG_WITH(html-component, 125 125 AC_HELP_STRING([--with-html-component], 126 [Set which html component to use (mozembed, gtkhtml, none)]),126 [Set which html component to use (mozembed, gtkhtml, webkit, none)]), 127 127 [case "$with_html_component" in 128 128 webkit) … … 140 140 build_webkit=false 141 141 build_mozembed=false 142 build_gtkhtml= false142 build_gtkhtml=true 143 143 build_demoui=true 144 144 ;; … … 381 381 fi 382 382 AC_SUBST([MOZILLA_HOME]) 383 384 dnl ### libtinymailui-gtkhtml, a library that wraps the GtkHtml widget ## 385 if test x$build_gtkhtml = xtrue; then 386 extraplatpkgs="libgtkhtml-3.8" 387 extratnypkgs="$extratnypkgs $extraplatpkgs" 388 PKG_CHECK_MODULES(LIBTINYMAILUI_GTKHTML, $extraplatpkgs glib-2.0 >= 2.8 gobject-2.0 gtk+-2.0 $extragtkpkgs) 389 else 390 LIBTINYMAILUI_GTKHTML_CFLAGS= 391 LIBTINYMAILUI_GTKHTML_LIBS= 392 fi 383 393 384 394 dnl ### libtinymail-gnome-desktop, a GNOME platform library implementation ## … … 507 517 libtinymailui-webkit/Makefile 508 518 libtinymailui-webkit/libtinymailui-webkit.pc 519 libtinymailui-gtkhtml/Makefile 520 libtinymailui-gtkhtml/libtinymailui-gtkhtml.pc 509 521 libtinymailui-mozembed/Makefile 510 522 libtinymailui-mozembed/libtinymailui-mozembed.pc trunk/libtinymail-camel/bs/bodystruct.c
r3213 r3287 193 193 inptr++; /* My '(' */ 194 194 195 if (!first) 195 if (!first) { 196 196 g_string_append (str, ", "); 197 first = FALSE; 198 } 197 199 198 200 name = decode_qstring (&inptr, inend, err); … … 341 343 342 344 if (!val) { 345 param = NULL; 343 346 *in = inptr; 344 347 g_free (name); trunk/libtinymail-camel/camel-lite/camel/camel-data-cache.c
r3282 r3287 498 498 if (boundary == NULL) 499 499 { 500 CamelContentType *ct = NULL;500 /* CamelContentType *ct = NULL; */ 501 501 const char *bound=NULL; 502 502 char *pstr = (char*)camel_strstrcase ((const char *) buffer, "boundary"); … … 516 516 } 517 517 518 if (ct)518 /* if (ct) 519 519 { 520 520 bound = camel_content_type_param(ct, "boundary"); 521 521 if (bound && strlen (bound) > 0) 522 522 boundary = g_strdup (bound); 523 } 523 } */ 524 524 } else if (strstr ((const char*) buffer, (const char*) boundary)) 525 525 { trunk/libtinymail-camel/camel-lite/camel/camel-folder-summary.c
r3235 r3287 507 507 } 508 508 509 #if 0 509 510 void 510 511 camel_folder_summary_move_up (CamelFolderSummary *s) … … 518 519 for (i = s->messages->len; i > 0 ; i--) 519 520 { 520 if (first) 521 if (first) { 521 522 g_ptr_array_add (s->messages, s->messages->pdata[i-1]); 522 else 523 first = FALSE; 524 } else 523 525 s->messages->pdata[i+1] = s->messages->pdata[i]; 524 526 } … … 529 531 } 530 532 533 #endif 531 534 /** 532 535 * camel_folder_summary_array: trunk/libtinymail-camel/camel-lite/camel/camel-folder-summary.h
r3258 r3287 394 394 int camel_folder_summary_get_index_for (CamelFolderSummary *s, const char *uid); 395 395 396 #if 0 396 397 void camel_folder_summary_move_up (CamelFolderSummary *s); 397 398 #endif 398 399 399 400 G_END_DECLS trunk/libtinymail-camel/camel-lite/camel/providers/imap/camel-imap-folder.c
r3284 r3287 4548 4548 fil = fopen (path, "w"); 4549 4549 4550 if (!fil || fd == -1) {4550 if (!fil) { 4551 4551 err = TRUE; 4552 4552 ex_id = CAMEL_EXCEPTION_SYSTEM_IO_WRITE; … … 4556 4556 4557 4557 fd = fileno (fil); 4558 4559 if (fd == -1) { 4560 err = TRUE; 4561 ex_id = CAMEL_EXCEPTION_SYSTEM_IO_WRITE; 4562 err_message = g_strdup_printf (_("Write to cache failed: %s"), g_strerror (errno)); 4563 goto convert_errorhandler; 4564 } 4558 4565 4559 4566 if (store->capabilities & IMAP_CAPABILITY_CONVERT) … … 4796 4803 fil = fopen (path, "w"); 4797 4804 4798 if (!fil || fd == -1) {4805 if (!fil) { 4799 4806 err = TRUE; 4800 4807 ex_id = CAMEL_EXCEPTION_SYSTEM_IO_WRITE; … … 4804 4811 4805 4812 fd = fileno (fil); 4813 4814 if (fd == -1) { 4815 err = TRUE; 4816 ex_id = CAMEL_EXCEPTION_SYSTEM_IO_WRITE; 4817 err_message = g_strdup_printf (_("Write to cache failed: %s"), g_strerror (errno)); 4818 goto fetch_errorhandler; 4819 } 4820 4806 4821 4807 4822 if (binary && *binary && store->capabilities & IMAP_CAPABILITY_BINARY) … … 5141 5156 char *ptr = in; 5142 5157 gboolean open = FALSE; 5143 gint num ;5158 gint num = 99; 5144 5159 5145 5160 while (*ptr) { trunk/libtinymail-camel/camel-lite/camel/providers/pop3/camel-pop3-folder.c
r3282 r3287 275 275 int i, hcnt = 0, lcnt = 0; 276 276 CamelFolderChangeInfo *changes = NULL; 277 GList *deleted = NULL ;277 GList *deleted = NULL, *copy; 278 278 gint max; 279 279 … … 472 472 } 473 473 474 copy = deleted; 474 475 while (deleted) 475 476 { … … 485 486 } 486 487 487 if ( deleted)488 g_list_free ( deleted);488 if (copy) 489 g_list_free (copy); 489 490 490 491 if (changes && camel_folder_change_info_changed (changes)) { trunk/libtinymail-camel/camel-lite/summary/summary.c
r3238 r3287 425 425 { 426 426 SummaryItem *cur; 427 char *uid = (char *) malloc(len );427 char *uid = (char *) malloc(len + 1); 428 428 gboolean do_add = FALSE; 429 429 … … 1023 1023 g_static_rec_mutex_init (summary->lock); 1024 1024 1025 fscanf (f, "%d", &items); 1025 if (f) { 1026 fscanf (f, "%d", &items); 1027 fclose (f); 1028 } else 1029 items = 0; 1026 1030 1027 1031 g_static_rec_mutex_lock (summary->lock); trunk/libtinymail-camel/tny-camel-send-queue.c
r3286 r3287 354 354 TnyIterator *hdriter = NULL; 355 355 TnyList *headers = tny_simple_list_new (); 356 GList *to_remove = NULL ;356 GList *to_remove = NULL, *copy; 357 357 TnyIterator *giter = NULL; 358 358 … … 407 407 g_object_unref (giter); 408 408 409 copy = to_remove; 410 409 411 while (to_remove) { 410 412 tny_list_remove (headers, G_OBJECT (to_remove->data)); 411 413 to_remove = g_list_next (to_remove); 412 414 } 413 if (to_remove) 414 g_list_free (to_remove); 415 416 if (copy) 417 g_list_free (copy); 415 418 416 419 length = tny_list_get_length (headers); trunk/libtinymail-camel/tny-session-camel.c
r3280 r3287 535 535 CamelStore *store = NULL; 536 536 CamelFolder *folder = NULL; 537 int offset = 0;537 /*int offset = 0;*/ 538 538 char *curi = NULL; 539 539 540 540 g_return_val_if_fail (uri != NULL, NULL); 541 541 542 url = camel_url_new (uri + offset, ex);542 url = camel_url_new (uri /*+ offset*/, ex); 543 543 544 544 if (G_UNLIKELY (!url)) … … 548 548 } 549 549 550 store = (CamelStore *)camel_session_get_service(session, uri +offset, CAMEL_PROVIDER_STORE, ex);550 store = (CamelStore *)camel_session_get_service(session, uri /* + offset */, CAMEL_PROVIDER_STORE, ex); 551 551 if (G_LIKELY (store)) 552 552 { … … 563 563 } 564 564 565 if (offset)565 /*if (offset) 566 566 { 567 567 if (offset == 7) … … 571 571 else 572 572 g_assert (FALSE); 573 } else 573 } else*/ 574 574 folder = (CamelFolder*)camel_store_get_folder (store, name, flags, ex); 575 575 camel_object_unref (store); trunk/libtinymail-gnome-desktop/Makefile.am
r1783 r3287 11 11 if BUILD_MOZEMBED 12 12 INCLUDES += -I$(top_srcdir)/libtinymailui-mozembed -DMOZEMBED 13 endif 14 15 if BUILD_GTKHTML 16 INCLUDES += -I$(top_srcdir)/libtinymailui-gtkhtml -DGTKHTML 13 17 endif 14 18 … … 49 53 endif 50 54 55 if BUILD_GTKHTML 56 libtinymail_gnome_desktop_1_0_la_LIBADD += $(top_builddir)/libtinymailui-gtkhtml/libtinymailui-gtkhtml-$(API_VERSION).la 57 endif 58 51 59 libtinymailgnomedesktopincludedir = $(includedir)/libtinymail-gnome-desktop-$(API_VERSION) 52 60 libtinymailgnomedesktopinclude_HEADERS = $(libtinymail_gnome_desktop_1_0_headers) trunk/libtinymail-gnome-desktop/tny-gnome-platform-factory.c
r2825 r3287 28 28 #ifdef MOZEMBED 29 29 #include <tny-moz-embed-msg-view.h> 30 #else 30 #endif 31 32 #ifdef GTKHTML 33 #include <tny-gtk-html-msg-view.h> 34 #endif 35 31 36 #include <tny-gtk-msg-view.h> 32 #endif33 37 34 38 #ifdef GNOME … … 87 91 tny_gnome_platform_factory_new_msg_view (TnyPlatformFactory *self) 88 92 { 89 TnyMsgView *retval ;93 TnyMsgView *retval = NULL; 90 94 91 95 #ifdef MOZEMBED 92 96 retval = tny_moz_embed_msg_view_new (); 93 #else 94 retval = tny_gtk_msg_view_new (); 95 #endif 97 #endif 98 99 #ifdef GTKHTML 100 retval = tny_gtk_html_msg_view_new (); 101 #endif 102 103 if (!retval) 104 retval = tny_gtk_msg_view_new (); 96 105 97 106 return retval; trunk/libtinymail/tny-list.c
r3161 r3287 250 250 TNY_LIST_GET_IFACE (self)->remove_matches_func (self, matcher, match_data); 251 251 else { 252 GList *to_remove = NULL ;252 GList *to_remove = NULL, *copy; 253 253 TnyIterator *iter = tny_list_create_iterator (self); 254 254 … … 264 264 g_object_unref (iter); 265 265 266 copy = to_remove; 266 267 while (to_remove) { 267 268 GObject *item = to_remove->data; … … 271 272 } 272 273 273 if ( to_remove)274 g_list_free ( to_remove);274 if (copy) 275 g_list_free (copy); 275 276 } 276 277
