Mercurial > dwindows
diff gtk/dw.c @ 199:b955228477b3
Removed the window parameter to dw_timer_connect() it was no needed.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Mon, 20 Jan 2003 20:21:06 +0000 |
parents | 11b5da6196c2 |
children | 9f87ad1572eb |
line wrap: on
line diff
--- a/gtk/dw.c Mon Jan 20 11:16:27 2003 +0000 +++ b/gtk/dw.c Mon Jan 20 20:21:06 2003 +0000 @@ -7067,18 +7067,12 @@ * Returns: * Timer ID for use with dw_timer_disconnect(), 0 on error. */ -int API dw_timer_connect(HWND window, int interval, void *sigfunc, void *data) +int API dw_timer_connect(int interval, void *sigfunc, void *data) { int tag, _locked_by_me = FALSE; - char buf[100]; - - if(!window) - return 0; DW_MUTEX_LOCK; tag = gtk_timeout_add(interval, (GtkFunction)sigfunc, data); - sprintf(buf, "_dw_timer%d", tag); - gtk_object_set_data(GTK_OBJECT(window), buf, (gpointer)tag); DW_MUTEX_UNLOCK; return tag; }