X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fgtkmathview-bonobo%2Fsrc%2Fhandlers.c;h=cca4f1e9e51fa82b5c798b62e2d434a8ecc2bc90;hb=08642527c1562675c56914193b294a9766ac4e91;hp=485ad0183ad1ecadde2f5119e09b01cca7b92eb9;hpb=bde6167e3e110bd77cfe3b421b494e4e6a2ece96;p=helm.git diff --git a/helm/gtkmathview-bonobo/src/handlers.c b/helm/gtkmathview-bonobo/src/handlers.c index 485ad0183..cca4f1e9e 100644 --- a/helm/gtkmathview-bonobo/src/handlers.c +++ b/helm/gtkmathview-bonobo/src/handlers.c @@ -69,9 +69,9 @@ select_begin_cb(GtkMathView* math_view, GdomeElement* elem, gint state, control_data->root_selected = NULL; } - if (control_data->semantic_selection) + if (control_data->id_ns_uri != NULL || control_data->id_name != NULL) { - GdomeElement* new_elem = find_xref_element(elem); + GdomeElement* new_elem = find_element_with_id(elem, control_data->id_ns_uri, control_data->id_name); if (new_elem != NULL) { gdome_el_ref(new_elem, &exc); @@ -116,12 +116,12 @@ select_over_cb(GtkMathView* math_view, GdomeElement* elem, gint state, control_data->root_selected = NULL; } - if (control_data->semantic_selection) + if (control_data->id_ns_uri != NULL || control_data->id_name != NULL) { GdomeElement* new_root = find_common_ancestor(control_data->first_selected, elem); if (new_root != NULL) { - control_data->root_selected = find_xref_element(new_root); + control_data->root_selected = find_element_with_id(new_root, control_data->id_ns_uri, control_data->id_name); gdome_el_unref(new_root, &exc); g_assert(exc == 0); }