# HG changeset patch # User Sadrul Habib Chowdhury # Date 1162963161 0 # Node ID d7732681329bfb32e90dd1bae4027993bead6955 # Parent ad64947f81c855ebb5cb5d4050edc9990b066992 [gaim-migrate @ 17703] There's no default mouse-click handler in GntWM. So let's not crash trying to call that. committer: Tailor Script diff -r ad64947f81c8 -r d7732681329b console/libgnt/wms/s.c --- a/console/libgnt/wms/s.c Wed Nov 08 04:16:56 2006 +0000 +++ b/console/libgnt/wms/s.c Wed Nov 08 05:19:21 2006 +0000 @@ -24,7 +24,6 @@ void gntwm_init(GntWM **wm); static void (*org_new_window)(GntWM *wm, GntWidget *win); -static gboolean (*org_mouse_clicked)(GntWM *wm, GntMouseEvent event, int cx, int cy, GntWidget *widget); static void envelope_buddylist(GntWidget *win) @@ -139,12 +138,12 @@ int x, y, w, h; if (!widget) - return org_mouse_clicked(wm, event, cx, cy, widget); + return FALSE; /* This might be a place to bring up a context menu */ if (event != GNT_LEFT_MOUSE_DOWN || GNT_WIDGET_IS_FLAG_SET(widget, GNT_WIDGET_NO_BORDER)) - return org_mouse_clicked(wm, event, cx, cy, widget); + return FALSE; gnt_widget_get_position(widget, &x, &y); gnt_widget_get_size(widget, &w, &h); @@ -154,7 +153,7 @@ return TRUE; } - return org_mouse_clicked(wm, event, cx, cy, widget); + return FALSE; } static gboolean @@ -175,7 +174,6 @@ GntWMClass *pclass = GNT_WM_CLASS(klass); org_new_window = pclass->new_window; - org_mouse_clicked = pclass->mouse_clicked; pclass->new_window = s_new_window; pclass->decorate_window = s_decorate_window;