guint idx = math_view->action_element->GetSelectedIndex(); if (idx < math_view->action_element->content.GetSize())
MathMLActionElement* action_element = TO_ACTION(findMathMLElement(math_view->action_node)); assert(action_element != NULL); guint idx = action_element->GetSelectedIndex(); if (idx < action_element->content.GetSize())
gtk_math_view_action_toggle(GtkMathView* math_view){  g_return_if_fail(math_view != NULL);  g_return_if_fail(math_view->interface != NULL);  g_return_if_fail(math_view->action_element != NULL);  guint idx = math_view->action_element->GetSelectedIndex();  if (idx < math_view->action_element->content.GetSize())    idx++;  else    idx = 1;  gtk_math_view_action_set_selected(math_view, idx);}