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 | |
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
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | src/notificationwindow.c | 6 |
2 files changed, 9 insertions, 2 deletions
@@ -1,3 +1,8 @@ +2013-02-15 + + * src/notificationwindow.c: notification_window_set_message(): + check if the window exists. + 2013-02-14 * manual/ja/sylpheed.sgml: updated Japanese manual. 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) |