GdomeElement* elem = NULL;
gtk_math_view_button_release_event(GtkWidget* widget,				   GdkEventButton* event,				   GtkMathView* math_view){  g_return_val_if_fail(event != NULL, FALSE);  g_return_val_if_fail(math_view != NULL, FALSE);  g_return_val_if_fail(math_view->view, FALSE);  if (event->button == 1)    {      GdomeException exc = 0;      GdomeElement* elem = NULL;            gtk_math_view_get_element_at(math_view, (gint) event->x, (gint) event->y, &elem);#if 0      if (math_view->cursor_elem != elem)	{	  if (math_view->cursor_elem)	    {	      gdome_el_unref(math_view->cursor_elem, &exc);	      g_assert(exc == 0);	    }	  math_view->cursor_elem = elem;	  if (math_view->cursor_elem)	    {	      gdome_el_ref(math_view->cursor_elem, &exc);	      g_assert(exc == 0);	    }	  paint_widget(math_view);	}#endif      if (math_view->button_pressed == TRUE &&	  math_view->select_state == SELECT_STATE_NO &&	  fabs(math_view->button_press_x - event->x) <= CLICK_SPACE_RANGE &&	  fabs(math_view->button_press_y - event->y) <= CLICK_SPACE_RANGE &&	  abs(math_view->button_press_time - event->time) <= CLICK_TIME_RANGE)	{	  // the mouse should have not moved more than one pixel in each direction	  // and the time elapsed from the press event should be no more than 250ms	  g_signal_emit(GTK_OBJECT(math_view),			  click_signal,			  0,			  elem,			  event->state);	}      if (math_view->select_state == SELECT_STATE_YES)      	      g_signal_emit(GTK_OBJECT(math_view),			      select_end_signal,			      0,			      elem,			      event->state);      if (elem != NULL)	{	  gdome_el_unref(elem, &exc);	  g_assert(exc == 0);	}      math_view->button_pressed = FALSE;      math_view->select_state = SELECT_STATE_NO;    }    return FALSE;}