diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2013-02-13 08:44:28 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2013-02-13 08:44:28 +0000 |
commit | 40a57dbe977d3d7b2a2b22f2bc7ffcb20832e9e4 (patch) | |
tree | a662ed6715beed9ed2c112710bc88431e8ef72ef /src/notificationwindow.c | |
parent | def6dee82e3ddfbaaba95255f08e196575444f58 (diff) |
added plug-in API for notification window.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@3217 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/notificationwindow.c')
-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 51c7d4ae..e3069aea 100644 --- a/src/notificationwindow.c +++ b/src/notificationwindow.c @@ -39,7 +39,7 @@ #define FADE_REFRESH_RATE 50 #define FADE_SPEED 5 -struct _NotificationWindow +typedef struct _NotificationWindow { GtkWidget *window; @@ -56,7 +56,7 @@ struct _NotificationWindow gint fade_count; gint notify_event_count; guint timeout; -}; +} NotificationWindow; static NotificationWindow notify_window; @@ -161,6 +161,8 @@ gint notification_window_open(const gchar *message, const gchar *submessage, if (y < 0) y = 0; gtk_window_move(GTK_WINDOW(window), x, y); + if (timeout == 0) + timeout = 1; notify_window.notify_tag = g_timeout_add(timeout * 1000, notify_timeout_cb, NULL); |