[bijiben] No notes found: do not repeat the string in vain
- From: Pierre-Yves Luyten <pyluyten src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [bijiben] No notes found: do not repeat the string in vain
- Date: Sat, 15 Feb 2014 21:29:06 +0000 (UTC)
commit 7ed5f6d9e871aced709261ca2aba8a4a82519379
Author: Bogdan Petcu <bogdanconstantinpetcu gmail com>
Date: Sat Feb 15 22:28:03 2014 +0100
No notes found: do not repeat the string in vain
src/bjb-empty-results-box.c | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/src/bjb-empty-results-box.c b/src/bjb-empty-results-box.c
index 1ac7d86..04755c2 100644
--- a/src/bjb-empty-results-box.c
+++ b/src/bjb-empty-results-box.c
@@ -142,12 +142,15 @@ bjb_empty_results_box_set_type (BjbEmptyResultsBox *self,
gtk_label_set_label (
self->priv->details_label,
_("Your notes notebook is empty.\nClick the New button to create your first note."));
+
+ gtk_widget_show (GTK_WIDGET (self->priv->details_label));
break;
case BJB_EMPTY_RESULTS_NO_RESULTS:
gtk_label_set_label (
- self->priv->details_label,
- _("No result found for this research."));
+ self->priv->details_label, NULL);
+
+ gtk_widget_hide (GTK_WIDGET (self->priv->details_label));
break;
@@ -165,6 +168,8 @@ bjb_empty_results_box_set_type (BjbEmptyResultsBox *self,
gtk_label_set_label (
self->priv->details_label,
_("Please install 'Tracker' then restart the application."));
+
+ gtk_widget_show (GTK_WIDGET (self->priv->details_label));
break;
default:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]