diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | ChangeLog.ja | 7 | ||||
-rw-r--r-- | src/imageview.c | 2 | ||||
-rw-r--r-- | src/mimeview.c | 11 |
4 files changed, 26 insertions, 0 deletions
@@ -1,5 +1,11 @@ 2005-11-25 + * src/imageview.c: size_allocate_cb(): don't update image view if + image_data doesn't exist. + * src/mimeview.c: mimeview_change_view_type(): clear hidden view. + +2005-11-25 + * libsylph/session.[ch]: session_read_data_as_file_cb(): don't write to file until buffer is filled more than the half. Extended the buffer size. diff --git a/ChangeLog.ja b/ChangeLog.ja index d4dccf5e..37b9e29b 100644 --- a/ChangeLog.ja +++ b/ChangeLog.ja @@ -1,5 +1,12 @@ 2005-11-25 + * src/imageview.c: size_allocate_cb(): image_data が存在しなければ + イメージビューを更新しないようにした。 + * src/mimeview.c: mimeview_change_view_type(): 隠したビューをクリア + するようにした。 + +2005-11-25 + * libsylph/session.[ch]: session_read_data_as_file_cb(): バッファが 半分以上満たされるまでファイルに書き出さないようにした。バッファ サイズを拡大。 diff --git a/src/imageview.c b/src/imageview.c index 312794f7..77f33006 100644 --- a/src/imageview.c +++ b/src/imageview.c @@ -246,6 +246,8 @@ static void size_allocate_cb(GtkWidget *widget,GtkAllocation *allocation, } if (!imageview->scrolledwin->parent) return; + if (!imageview->image_data) + return; imageview_show_image(imageview, NULL, NULL, TRUE); imageview->resizing = TRUE; } diff --git a/src/mimeview.c b/src/mimeview.c index a23c058b..86b9134d 100644 --- a/src/mimeview.c +++ b/src/mimeview.c @@ -729,6 +729,17 @@ static void mimeview_change_view_type(MimeView *mimeview, MimeViewType type) g_list_free(children); } + switch (mimeview->type) { + case MIMEVIEW_IMAGE: + imageview_clear(mimeview->imageview); + break; + case MIMEVIEW_TEXT: + textview_clear(mimeview->textview); + break; + default: + break; + } + switch (type) { case MIMEVIEW_IMAGE: gtk_container_add(GTK_CONTAINER(mimeview->mime_vbox), |