comparison gtk/dw.c @ 94:7c3eef54c98c

Popup menu handler fix for GTK, and fixed sliders/percent widgets not being accurate after a resize. Also removed a limitation in the click default code.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Thu, 09 May 2002 06:31:48 +0000
parents 98cce029a611
children baaf4b04d284
comparison
equal deleted inserted replaced
93:98cce029a611 94:7c3eef54c98c
264 264
265 if(work) 265 if(work)
266 { 266 {
267 int (*genericfunc)(HWND, void *) = work->func; 267 int (*genericfunc)(HWND, void *) = work->func;
268 268
269 genericfunc(popup ? popup : widget, work->data); 269 genericfunc(widget, work->data);
270 } 270 }
271 return TRUE; 271 return TRUE;
272 } 272 }
273 273
274 void _activate_event(GtkWidget *widget, gpointer data) 274 void _activate_event(GtkWidget *widget, gpointer data)
277 277
278 if(work && !_dw_ignore_click) 278 if(work && !_dw_ignore_click)
279 { 279 {
280 void (*activatefunc)(HWND, void *) = work->func; 280 void (*activatefunc)(HWND, void *) = work->func;
281 281
282 activatefunc(work->window, work->data); 282 activatefunc(popup ? popup : work->window, work->data);
283 } 283 }
284 return; 284 return;
285 } 285 }
286 286
287 gint _configure_event(GtkWidget *widget, GdkEventConfigure *event, gpointer data) 287 gint _configure_event(GtkWidget *widget, GdkEventConfigure *event, gpointer data)