Revision 3217 src/notificationwindow.c

View differences:

notificationwindow.c
39 39
#define FADE_REFRESH_RATE			50
40 40
#define FADE_SPEED				5
41 41

  
42
struct _NotificationWindow
42
typedef struct _NotificationWindow
43 43
{
44 44
	GtkWidget *window;
45 45

  
......
56 56
	gint fade_count;
57 57
	gint notify_event_count;
58 58
	guint timeout;
59
};
59
} NotificationWindow;
60 60

  
61 61
static NotificationWindow notify_window;
62 62

  
......
161 161
	if (y < 0) y = 0;
162 162
	gtk_window_move(GTK_WINDOW(window), x, y);
163 163

  
164
	if (timeout == 0)
165
		timeout = 1;
164 166
	notify_window.notify_tag = g_timeout_add(timeout * 1000,
165 167
						 notify_timeout_cb, NULL);
166 168

  

Also available in: Unified diff