diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2013-02-15 01:21:41 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2013-02-15 01:21:41 +0000 |
commit | 19177b744c0b5944be35350dfba9fbd61027cac1 (patch) | |
tree | bd3da1884c41745f81ee3f47054af58d3e64fea8 /src | |
parent | ca870e9a49e1c2bff25751bdc89fb2fea0fa365a (diff) |
notification_window_set_message(): check if the window exists.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@3226 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src')
-rw-r--r-- | src/notificationwindow.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/notificationwindow.c b/src/notificationwindow.c index 4c11e63b..018871cd 100644 --- a/src/notificationwindow.c +++ b/src/notificationwindow.c @@ -186,8 +186,10 @@ gint notification_window_open(const gchar *message, const gchar *submessage, void notification_window_set_message(const gchar *message, const gchar *submessage) { - gtk_label_set_text(GTK_LABEL(notify_window.msglabel), message); - gtk_label_set_markup(GTK_LABEL(notify_window.sublabel), submessage); + if (notify_window.window) { + gtk_label_set_text(GTK_LABEL(notify_window.msglabel), message); + gtk_label_set_markup(GTK_LABEL(notify_window.sublabel), submessage); + } } void notification_window_close(void) |