Changeset 3034
- Timestamp:
- 11/29/07 01:03:23
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
devel/pvanhoof/bs/libtinymailui-gtk/tny-gtk-attach-list-model.c
r2944 r3034 51 51 GtkTreeIter iter; 52 52 TnyGtkAttachListModelPriv *priv = TNY_GTK_ATTACH_LIST_MODEL_GET_PRIVATE (self); 53 54 53 static GdkPixbuf *stock_file_pixbuf = NULL; 55 54 GdkPixbuf *pixbuf; … … 63 62 { 64 63 priv->theme = gtk_icon_theme_get_default (); 65 g_object_ref ( G_OBJECT (priv->theme));64 g_object_ref (priv->theme); 66 65 } 67 66 … … 100 99 TNY_GTK_ATTACH_LIST_MODEL_FILENAME_COLUMN, 101 100 tny_mime_part_get_filename (part), 101 TNY_GTK_ATTACH_LIST_MODEL_INSTANCE_COLUMN, 102 part, -1); 103 } else { 104 105 func (model, &iter); 106 107 gtk_list_store_set (model, &iter, 108 TNY_GTK_ATTACH_LIST_MODEL_FILENAME_COLUMN, 109 tny_mime_part_get_description (part)? 110 tny_mime_part_get_description (part): 111 "Unknown attachment", 102 112 TNY_GTK_ATTACH_LIST_MODEL_INSTANCE_COLUMN, 103 113 part, -1); devel/pvanhoof/bs/libtinymailui-gtk/tny-gtk-msg-view.c
r3033 r3034 415 415 retval = tny_gtk_image_mime_part_view_new (priv->status_callback, priv->status_user_data); 416 416 417 } else if (priv->display_rfc822 && (tny_mime_part_content_type_is (part, "message/rfc822")|| 418 tny_mime_part_content_type_is (part, "multipart/*"))) 417 } else if (tny_mime_part_content_type_is (part, "multipart/*")) 419 418 { 420 419 retval = TNY_MIME_PART_VIEW (tny_msg_view_create_new_inline_viewer (self)); 421 420 422 421 /* Attachments */ 423 } else if (priv->display_attachments && tny_mime_part_is_attachment (part)) 422 } else if (priv->display_attachments && tny_mime_part_is_attachment (part) || 423 (priv->display_rfc822 && (tny_mime_part_content_type_is (part, "message/rfc822")))) 424 424 { 425 425 GtkTreeModel *model; … … 497 497 { 498 498 TnyGtkMsgViewPriv *mppriv = TNY_GTK_MSG_VIEW_GET_PRIVATE (mpview); 499 const gchar *label = desc;499 const gchar *label = tny_mime_part_get_description (part); 500 500 GtkWidget *expander; 501 501 … … 526 526 prv->signal = g_signal_connect (G_OBJECT (mpview), 527 527 "realize", G_CALLBACK (on_mpview_realize), prv); 528 tny_mime_part_view_set_part (mpview, part);529 528 } else 530 529 tny_mime_part_view_set_part (mpview, part); … … 550 549 551 550 551 552 552 /** 553 553 * tny_gtk_msg_view_display_parts: … … 690 690 priv->part = g_object_ref (G_OBJECT (part)); 691 691 692 if (!tny_mime_part_content_type_is (part, "multipart/*") && 693 !tny_mime_part_content_type_is (part, "message/*")) 694 { 692 if (!tny_mime_part_content_type_is (part, "multipart/*")) { 695 693 696 694 tny_gtk_msg_view_display_part (TNY_MSG_VIEW (self), part, NULL); 697 695 698 } else 699 { 696 } else { 700 697 TnyList *list; 701 698 list = tny_simple_list_new ();
