aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2012-08-16 06:57:43 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2012-08-16 06:57:43 +0000
commit74ff966069a427c60376ebe546edce276d5c3e0e (patch)
tree78deba50193e85dc7db565a58f920a5a6e045742
parent86fe76ac8c0e85178808908c317fe2cc940bd047 (diff)
Don't show previous tooltips on headerview when cleared.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@3153 ee746299-78ed-0310-b773-934348b2243d
-rw-r--r--ChangeLog1
-rw-r--r--src/headerview.c5
2 files changed, 6 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index c52d2eb6..58c51050 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,7 @@
2012-08-16
* src/headerview.c: fixed tooltips on windows.
+ Don't show previous tooltips when cleared.
2012-08-16
diff --git a/src/headerview.c b/src/headerview.c
index be7a25b8..7e70e378 100644
--- a/src/headerview.c
+++ b/src/headerview.c
@@ -227,6 +227,7 @@ void headerview_show(HeaderView *headerview, MsgInfo *msginfo)
gtk_label_set_text(GTK_LABEL(headerview->from_body_label),
msginfo->from ? msginfo->from : _("(No From)"));
if (msginfo->from) {
+ gtk_widget_show(headerview->from_body_label);
gtk_tooltips_set_tip(headerview->tip, headerview->from_body_label, msginfo->from, NULL);
}
@@ -258,6 +259,7 @@ void headerview_show(HeaderView *headerview, MsgInfo *msginfo)
msginfo->subject ? msginfo->subject
: _("(No Subject)"));
if (msginfo->subject) {
+ gtk_widget_show(headerview->subject_body_label);
gtk_tooltips_set_tip(headerview->tip, headerview->subject_body_label, msginfo->subject, NULL);
}
@@ -317,17 +319,20 @@ static void headerview_show_xface(HeaderView *headerview, MsgInfo *msginfo)
void headerview_clear(HeaderView *headerview)
{
+ g_print("clear\n");
gtk_label_set_text(GTK_LABEL(headerview->from_body_label), "");
gtk_label_set_text(GTK_LABEL(headerview->to_body_label), "");
gtk_label_set_text(GTK_LABEL(headerview->cc_body_label), "");
gtk_label_set_text(GTK_LABEL(headerview->ng_body_label), "");
gtk_label_set_text(GTK_LABEL(headerview->subject_body_label), "");
+ gtk_widget_hide(headerview->from_body_label);
gtk_widget_hide(headerview->to_header_label);
gtk_widget_hide(headerview->to_body_label);
gtk_widget_hide(headerview->cc_header_label);
gtk_widget_hide(headerview->cc_body_label);
gtk_widget_hide(headerview->ng_header_label);
gtk_widget_hide(headerview->ng_body_label);
+ gtk_widget_hide(headerview->subject_body_label);
gtk_tooltips_disable(headerview->tip);