projects
/
modest
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8500948
)
* clear the message text view before displaying the selected message
author
Arne Zellentin
<arne@kernelconcepts.de>
Mon, 15 May 2006 17:53:20 +0000
(17:53 +0000)
committer
Arne Zellentin
<arne@kernelconcepts.de>
Mon, 15 May 2006 17:53:20 +0000
(17:53 +0000)
pmo-trunk-r64
src/modest-tny-msg-view.c
patch
|
blob
|
history
diff --git
a/src/modest-tny-msg-view.c
b/src/modest-tny-msg-view.c
index
00dbe5b
..
a101824
100644
(file)
--- a/
src/modest-tny-msg-view.c
+++ b/
src/modest-tny-msg-view.c
@@
-126,9
+126,11
@@
modest_tny_msg_view_set_message (ModestTnyMsgView *self, TnyMsgIface *msg)
priv = MODEST_TNY_MSG_VIEW_GET_PRIVATE(self);
buf = gtk_text_view_get_buffer (GTK_TEXT_VIEW(priv->text_view));
- /* if msg is NULL, just delete the stuff */
+ /* clear the message view */
+ gtk_text_buffer_set_text (buf, "", 0);
+
+ /* if msg is NULL, do nothing else */
if (!msg) {
- gtk_text_buffer_set_text (buf, NULL, 0);
return;
}