[ekiga/ds-gtk-application] GmInfoBar: Added guard against empty messages.
- From: Damien Sandras <dsandras src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ekiga/ds-gtk-application] GmInfoBar: Added guard against empty messages.
- Date: Sun, 30 Nov 2014 10:28:43 +0000 (UTC)
commit a79f90d0f440945936813f20cf1555f7c651de44
Author: Damien Sandras <dsandras seconix com>
Date: Sat Nov 29 12:15:58 2014 +0100
GmInfoBar: Added guard against empty messages.
lib/gui/gm-info-bar.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/lib/gui/gm-info-bar.c b/lib/gui/gm-info-bar.c
index 3b1c085..cde483a 100644
--- a/lib/gui/gm-info-bar.c
+++ b/lib/gui/gm-info-bar.c
@@ -215,6 +215,9 @@ gm_info_bar_display_message (GmInfoBar *self,
GtkMessageType type,
const char *message)
{
+ if (!g_strcmp0 (message, ""))
+ return;
+
gtk_info_bar_set_message_type (GTK_INFO_BAR (self), type);
gtk_label_set_text (GTK_LABEL (self->priv->label), message);
gtk_info_bar_set_show_close_button (GTK_INFO_BAR (self), (type != GTK_MESSAGE_INFO));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]