static void select_for_move(guiLabel_t *obj) { GUI_SetSelected((guiObject_t *)obj); notify_cb((guiObject_t *)obj); int idx = guielem_idx((guiObject_t *)obj); if (lp->selected_for_move == idx) return; if (lp->selected_for_move >= 0) { GUI_Redraw((guiObject_t *)&gui->elem[lp->selected_for_move]); } set_selected_for_move(idx); }
void select_for_move(guiLabel_t *obj) { GUI_SetSelected((guiObject_t *)obj); notify_cb((guiObject_t *)obj); int idx = guielem_idx((guiObject_t *)obj); if (lp->selected_for_move == idx) return; if (lp->selected_for_move >= 0) { gui->elem[lp->selected_for_move].desc.font_color ^= 0xffff; gui->elem[lp->selected_for_move].desc.fill_color ^= 0xffff; GUI_Redraw((guiObject_t *)&gui->elem[lp->selected_for_move]); } set_selected_for_move(idx); gui->elem[lp->selected_for_move].desc.font_color ^= 0xffff; gui->elem[lp->selected_for_move].desc.fill_color ^= 0xffff; }
JNIEXPORT void JNICALL Java_org_apache_subversion_javahl_SVNRepos_verify( JNIEnv *env, jobject jthis, jobject jpath, jobject jrevisionStart, jobject jrevisionEnd, jboolean jcheckNormalization, jboolean jmetadataOnly, jobject jnotifyCallback, jobject jverifyCallback) { JNIEntry(SVNRepos, verify); SVNRepos *cl = SVNRepos::getCppObject(jthis); if (cl == NULL) { JNIUtil::throwError(_("bad C++ this")); return; } File path(jpath); if (JNIUtil::isExceptionThrown()) return; Revision revisionStart(jrevisionStart); if (JNIUtil::isExceptionThrown()) return; Revision revisionEnd(jrevisionEnd); if (JNIUtil::isExceptionThrown()) return; ReposNotifyCallback notify_cb(jnotifyCallback); if (JNIUtil::isExceptionThrown()) return; ReposVerifyCallback verify_cb(jverifyCallback); if (JNIUtil::isExceptionThrown()) return; cl->verify(path, revisionStart, revisionEnd, jcheckNormalization, jmetadataOnly, jnotifyCallback != NULL ? ¬ify_cb : NULL, jverifyCallback != NULL ? &verify_cb : NULL); }