# HG changeset patch # User Sadrul Habib Chowdhury # Date 1178961850 0 # Node ID 541c5ed54e90b42db38b0a0bd11e33e6ee151abf # Parent fdd1a73aa37e82378310bfe1525dbe2d6ee436ab Fix the commit from earlier today about null-widgets. diff -r fdd1a73aa37e -r 541c5ed54e90 finch/libgnt/gntmain.c --- a/finch/libgnt/gntmain.c Sat May 12 02:50:27 2007 +0000 +++ b/finch/libgnt/gntmain.c Sat May 12 09:24:10 2007 +0000 @@ -145,10 +145,7 @@ } else return FALSE; - if (!widget) - return FALSE; - - if (gnt_wm_process_click(wm, event, x, y, widget)) + if (widget && gnt_wm_process_click(wm, event, x, y, widget)) return TRUE; if (event == GNT_LEFT_MOUSE_DOWN && widget && widget != wm->_list.window && @@ -180,7 +177,8 @@ offset = 0; } - gnt_widget_clicked(widget, event, x, y); + if (widget) + gnt_widget_clicked(widget, event, x, y); return TRUE; }