changeset 14931:d7732681329b

[gaim-migrate @ 17703] There's no default mouse-click handler in GntWM. So let's not crash trying to call that. committer: Tailor Script <tailor@pidgin.im>
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Wed, 08 Nov 2006 05:19:21 +0000
parents ad64947f81c8
children 94c69d2efae5
files console/libgnt/wms/s.c
diffstat 1 files changed, 3 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- 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;